0
Not really sure what you mean, but here is a for loop that loops over a string and prints each character individually. public class Program { public static void main(String[] args) { String str = "Hello, World!"; for(int i = 0; i < str.length(); ++i) { System.out.print(str.charAt(i)); } } }
21st Jul 2017, 4:17 AM
ChaoticDawg
ChaoticDawg - avatar