User Tools

Site Tools


java:lang:string:toarray
click
to support this page (eg 0,42 € or so) Thanks.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java:lang:string:toarray [2013/04/18 08:45]
88.74.75.6 created
java:lang:string:toarray [2013/04/18 08:50] (current)
88.74.75.6
Line 18: Line 18:
                
                  
-        System.out.println(str);+        System.out.println(str); // print the String
  
         text = str.toCharArray();         text = str.toCharArray();
         for (int i = 0; i <= text.length - 1; i++) {         for (int i = 0; i <= text.length - 1; i++) {
                          
-        System.out.println(text[i]);+        System.out.println(text[i]); // print the content of text Array
  
         }         }
advertising
java/lang/string/toarray.txt · Last modified: 2013/04/18 08:50 by 88.74.75.6

Impressum