while loops statements threw me off for a while, such as
int k=3
String s="";
while (k>-1){
s=k+" "+s;
k--;
}
System.out.print(s);
but then i realized what i was doing wrong and now i found out that it is much easier than i thought after all
No comments:
Post a Comment