/home/caleb/ASDV-Java/Assignments/lab15_CalebFontenot/src/lab15_calebfontenot/Array2.java |
nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
package lab15_calebfontenot;
@author
public class Array2 {
public static void main(String[] args)
{
String[] names1 = {"John", "Bill", "George"};
String[] names2 = new String[3];
names2[0] = "Mary";
names2[1] = "Ann";
names2[2] = "Lola";
for (int i = 0; i < names1.length; i++) {
System.out.println(names1[i]);
System.out.println(names2[i]);
}
}
}