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" };
- 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();
- Integer[] arr2 = { 1, 2, 3, 4, 5 };
- System.out.print("\nThe second array is filled with the following values:\n\t");
- for ( int i=0; i<arr2.length; i++ )
- System.out.print( arr2[i] + " " );
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement