You are on page 1of 2

Nama : Felix Gunawan

No : 07

Kelas : XI RPL1

2.

3. Identifier : X

 Keyword :Public,Class,Static,Void,Int,For
 Literal :
 Literal Angka:10,20,30,40,50
 Literal String: “,” , “\n”, “Wayan”, ”Eka”, ”Jason”, Lucy”, ”,”
 Separator :
 ( ) = parentheses
 [ ] = Brackets
 { } = Braces
 ; = Semicolon
 , = comma
 . = period
4. Public class Test{
Public static void main (String args[])
{
Int[] numbers = {19,20,21,22,23};

for (int x : numbers) {


System.out.print( X );
System.out.print(“,”);
}

System.out.print(“\n”);
String [] names = {“Dono”,”Dodi”,”Felix”,”Indra”};

For (String name : names) {


System.out.print( name );
System.out.print(“,”);
}
}
}

5. Identifier : X

Keywoard :Public,Class,Static,Void,Int,For
Literal : Literal Angka:1,2,3,4,5
Literal String: “,” , “\n”, “Dedy”, ”Arta”, ”Nina”, ”Dono”, ”,”
Separator : ( ) = parentheses
[ ] = Brackets
{ } = Braces
; = Semicolon
, = comma
. = period

You might also like