Advertisement
lol1234561

Untitled

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