+ 1
How to print a string's letters using for loop in java as like in python?
Eg : for i in "HELLO" Print(i) O/p: H E L L O
3 ответов
+ 2
Adding after Lisa
https://www.techiedelight.com/iterate-over-characters-string-java/
+ 1
String s = "hello";
for (int i=0;i<s.length;i++)
System.out.print(s.charAt(i)+" ");