In this section, you will learn to convert an Array to List.

Convert Array to List
In this section, you will learn to convert an Array to List.
Code Description:
This program helps you in converting an Array to List. Here we have taken an array of data which gets converted to List using Array.asList mathod. We have also used collection.sort method to get the data in sorted order.
import java.util.Arrays;
|
Output of the program:
|
C:\unique>javac ArrToList.java
C:\unique>java ArrToList |
Tutorials
- Convert Decimal into Binary
- Convert Decimal to Octal
- Convert Decimal to Hexadecimal
- Convert Binary to Decimal
- Convert Binary to Hexadecimal
- Convert Octal to Decimal
- Convert Hexadecimal to Decimal
- Convert Date To Calendar
- Convert Date to Milliseconds
- Convert Hexadecimal number into Integer
- Convert Hexadecimal into Binary and Long
- Convert an Integer into a String
- Convert a String into an Integer Data
- Convert a Character into the ASCII Format
- Convert Character into Integer
- Alphabet Character Case-Converter
- Convert Character into a String
- Convert String to Date
- Convert Date to Long
- Convert Date to String
- Convert String to Calendar
- Convert Milliseconds to Date
- Convert Date to Timestamp
- Convert Long to Date
- Convert Date to GMT
- Convert InputStream to Byte
- Convert InputStream to BufferedReader
- Convert Inputstream to OutputStream
- Convert InputStream to ByteArray
- Convert Inputstream to ByteArrayInputStream
- Convert InputStream to File
- Convert String to Date
- Convert Char To Byte
- Convert Double To String
- Convert ArrayList To Array
- Convert Boolean to String
- Convert Decimal to Integer
- Convert Float to Integer
- Convert Integer to Double
- Convert Integer to Float


