Advertisement
IanO-B

Untitled

Mar 4th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. import java.util.Random;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) {
  6. String[] arr1 = {"alpha", "bravo", "charlie", "delta", "echo"};
  7. int[] arr2 = {34, 69, 51, 33, 15};
  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. System.out.println();
  14. System.out.println("The second array is filled with the following values:\t");
  15. System.out.print("\t");
  16. for (int a = 0; a < arr2.length; a++) {
  17. System.out.print(arr2[a] + "\t ");
  18.  
  19.  
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement