Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java loops

String word = "Google";
for (char c: word.toCharArray()) {
  System.out.print(c + "-");
}
// Outputs: G-o-o-g-l-e
Source by coolcheatsheet.com #
 
PREVIOUS NEXT
Tagged: #java #loops
ADD COMMENT
Topic
Name
3+5 =