Advertisement
filipparodriguezz

Untitled

Feb 28th, 2020
121
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.     public static void main(String[] args) {
  3.         String[] arr1 = {"alpha", "bravo", "charlie", "delta", "echo"};
  4.         int[] ray = {11, 23, 37, 41, 53};
  5.  
  6.         System.out.println("The first array is filled with the following values:");
  7.         for (int i = 0; i < arr1.length; i++) {
  8.             System.out.print(arr1[i] + " ");
  9.         }
  10.             System.out.println();
  11.             System.out.println("\nThe second array is filled with the following values:");
  12.             for (int j = 0; j < ray.length; j++)
  13.                 System.out.print(ray[j] + " ");
  14.             System.out.println();
  15.         }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement