Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ArrayAntrian {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- String[] Antrian = new String[100];
- for(int x = 1; x < Antrian.length; x++) {
- System.out.print("Antrian ke-" + x + " : ");
- Antrian[x] = scan.nextLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement