Advertisement
Blonk

Untitled

Feb 26th, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. public class Main {
  2.  
  3.     public static void main(String[] args) {
  4.  
  5.                 String[] arr1 = { "alpha", "bravo", "charlie", "delta", "echo" };
  6.                 int[] myList = {6, 9, 4, 2, 0};
  7.  
  8.  
  9.                 System.out.print("The first array is filled with the following values:\n\t");
  10.                 for ( int i = 0; i < arr1.length; i++ )
  11.                     System.out.print( arr1[i] + " " );
  12.                 System.out.println();
  13.  
  14.                 System.out.print("The Second array is filled with the following values:\n\t");
  15.                 for ( int i = 0; i < myList.length; i++ )
  16.                 System.out.print( myList[i] + " " );
  17.                 System.out.println();
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement