0
Can you give examples of jumping Statements
When to use break , continue , written
5 Respostas
0
US.b That's just a space, they added a space because they used print instead of println.
Println:
1
2
Print without the " ":
12
With:
1 2
+ 8
for (int i=1;i<6;i++){
if (i==3)break;
System.out.print(i+" ");
}
//Output:
//1 2
//Replace break with continue and you get
//1 2 4 5
0
Println right
0
Can you explain why System.out.println (i+" "); dont understand " " part
0
You can also use continue with labels, something similar to goto statements.