A separator is the third of the Java tokens listed in the Input types section. Here are all twelve of them, in no particular order:
; { } ( ) [ ] , . ... :: @
A separator is the third of the Java tokens listed in the Input types section. Here are all twelve of them, in no particular order:
; { } ( ) [ ] , . ... :: @
By now, you are quite familiar with the usage of the separator ; (semicolon). Its only job in Java is to terminate a statement:
int i; //declaration statement
i = 2; //assignment statement
if(i == 3){ //flow control statement called if-statement
//do something
}
for(int i = 0; i < 10; i++){
//do something with each value of i
}
You have seen...