Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

write a name and convert it to an array

   public static void main(String[] args) {
        String name = "chathumal";
        char[] ch = name.toCharArray();
        System.out.println(Arrays.toString(ch));
    }
Comment

PREVIOUS NEXT
Code Example
Java :: how to iterate list of string array in java 
Java :: java string to decimal 
Java :: calling method in java 
Java :: get last index of array java 
Java :: fill an array with random numbers between 1 and 100 java 
Java :: runnable interface in java 
Java :: java hashmap key exists 
Java :: android how to get current activity 
Java :: close a popup selenium python 
Java :: java selenium implicitly wait 
Java :: how to check whether a character is alphabet or not in java 
Java :: volatile in java 
Java :: map interation in java 
Java :: How to create a popup window (PopupWindow) in Android 
Java :: string to byte array java 
Java :: default method in java 
Java :: convert array of int to arraylist java 
Java :: java thread class sleep 
Java :: how to iterate pixels image java 
Java :: java 8 map foreach 
Java :: how to initialize bigdecimal in java 
Java :: java length of matrix 
Java :: android imageview set image from drawable programmatically 
Java :: split number java 
Java :: Printing array list through for loop in java 
Java :: sum of list java 
Java :: java bean 
Java :: fill two dimensional array rows by rows java 
Java :: min max heap java 
Java :: useColorScheme returning light 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =