![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 11365 Articles
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
857 Views
Let us first declare and initialize milliseconds value variable −long milliSeconds = 656478;Now, convert Milliseconds to Date format −DateFormat dateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm:ss:SSS Z"); Date date = new Date(milliSeconds);Following is the program to convert Milliseconds to Date Format in Java −Exampleimport java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
655 Views
Here’s our List with string values −List myList = Arrays.asList("One", "Two", "Three", "Four", "Five");Now, let us convert this List to Stream −Stream s = myList.stream();Following is the program to convert List to Stream in Java −Exampleimport java.util.*; import java.util.stream.*; import java.util.function.Function; public class Demo { public static void main(String ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
958 Views
Here’s our List of String −List listString = Arrays.asList("25", "50", "75", "100", "125", "150");Now, convert the list of string to list of integer −List listInteger = listString.stream().map(Integer::parseInt).collect(Collectors.toList());Following is the program to convert List of String to List of Integer in Java −Exampleimport java.util.*; import java.util.stream.*; import java.util.function.*; public class Demo ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
520 Views
Here’s our List of Integer −List listInteger = Arrays.asList(25, 50, 75, 100, 125, 150);Now, convert List of Integer to List of String −List listString = listInteger.stream() .map(s -> String.valueOf(s)) .collect(Collectors.toList());Following is the program to convert List of Integer to List of String in Java −Exampleimport java.util.*; import java.util.stream.*; ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
3K+ Views
The contains() function of the Ints class is used to check whether an element is present in the array or not.Following is the syntax −public static boolean contains(int[] arr, int target)Here, arr is the array wherein the element is to be checked. The target is the element to be checked.Following ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
129 Views
The concat() function in Ints class is used to concatenate the arrays passed as parameter. The syntax is as follows −public static int[] concat(int[]... arr)Here, parameter arr is zero or more integer arrays.Let us see an example −Exampleimport com.google.common.primitives.Ints; import java.util.*; class Demo { public static void main(String[] args) ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
163 Views
The asList() method of the Ints class in Java Guava’s returns a fixed-size list backed by the specified array. The syntax is as follows −public static List asList(int[] arr)Here, arr is the array to back the list.Let us see an example to implement the asList() method of the Ints ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
107 Views
The java.lang.Integer.toHexString() method returns a string representation of the integer argument as an unsigned integer in base 16.Let us now see an example −Exampleimport java.lang.*; public class Main { public static void main(String[] args) { int i = 160; System.out.println("Number = " + ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
115 Views
The java.lang.Math.signum(float f) returns the signum function of the argument; zero if the argument is zero, 1.0f if the argument is greater than zero, -1.0f if the argument is less than zero.Let us now see an example −Exampleimport java.security.*; import java.util.*; public class Main { public static void main(String[] ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
85 Views
The string representation for the signature object can be obtained using the method getString() in the class java.security.Signature. This includes information such as the object state, algorithm name etcLet us now see an example −Exampleimport java.security.*; import java.util.*; public class Main { public static void main(String[] argv) { ... Read More