Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- String[] arr1 = { "alpha", "bravo", "charlie", "delta", "echo" };
- int[] myList = {6, 9, 4, 2, 0};
- System.out.print("The first array is filled with the following values:\n\t");
- for ( int i = 0; i < arr1.length; i++ )
- System.out.print( arr1[i] + " " );
- System.out.println();
- System.out.print("The Second array is filled with the following values:\n\t");
- for ( int i = 0; i < myList.length; i++ )
- System.out.print( myList[i] + " " );
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement