Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package array;
- public class Array {
- public static void main(String[] args) {
- String[] nama1 = {"Budi","Adi","Endra","Ali"};
- String[] nama2 = {"Bermain","Bernyanyi","Berenang","Berpegian"};
- String[] nama3 = {"Dengan","Dan","Di","Mereka"};
- String[] nama4 = {"Mail","Kebun","Sungai","Karoke"};
- String[] nama5 = {"Sampai","Malam","Pagi","Siang"};
- System.out.print(nama1[0]);
- System.out.print(" - ");
- System.out.print(nama2[2]);
- System.out.print(" - ");
- System.out.print(nama3[2]);
- System.out.print(" - ");
- System.out.print(nama5[0]);
- System.out.print(" - ");
- System.out.println(nama5[3]);
- // sesion kedua
- System.out.print(nama1[2]);
- System.out.print(" - ");
- System.out.print(nama3[1]);
- System.out.print(" - ");
- System.out.print(nama1[3]);
- System.out.print(" - ");
- System.out.print(nama2[1]);
- System.out.print(" - ");
- System.out.print(nama3[2]);
- System.out.print(" - ");
- System.out.print(nama4[3]);
- System.out.print(" - ");
- System.out.print(nama5[0]);
- System.out.print(" - ");
- System.out.print(nama5[1]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement