How to perform insertion and deletion of data using linked list in Java

Posted by Nilendra Kumar | Updated on | Java


In this answer, I have shared how to perform insertion and deletion of data using linked list using Java. A linked list is a linear collection of data elements, whose order is not given by …

How to find the highest length of substring without repeating characters?

Posted by Nilendra Kumar | Updated on | Java


Problem Write a program to find the highest length of substring without repeating characters from given string using Java. Solutions Program Output Note that the answer must be a substring, “pwke” is a subsequence and …

How to find nth highest salary of employees in Java?

Posted by Nilendra Kumar | Updated on | Java


If you want to how to find nth highest salary of employees in Java? Create 10 object for the class Employee which will have name, salary and id and find the nth highest salary employee …

How to find all the possible pair whose sum is = n?

Posted by Nilendra Kumar | Updated on | Java


Problem: Find all the possible pair whose sum is = n [Eg: 9] and find the position (against original data) of all possible pair whose sum is = n [Eg: 9] Solution: Copy the below …

How can I convert a Unix timestamp to DateTime and vice versa?

Posted by Editorial Staff | Updated on | c# Java


I you are looking for how can I convert a Unix timestamp to DateTime and vice versa? Use the following example: You can do the same thing in Java like following example: