Advertisement
rafibatam

Array JAVA

Jun 28th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class ArrayAntrian {
  4.     public static void main(String[] args) {
  5.         Scanner scan = new Scanner(System.in);
  6.         String[] Antrian = new String[100];
  7.        
  8.         for(int x = 1; x < Antrian.length; x++) {
  9.             System.out.print("Antrian ke-" + x + " : ");
  10.             Antrian[x] = scan.nextLine();
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement