Assignment #130 and Making Arrays
Code
/// Name: Brendan Baird
/// Period: 6
/// Program Name: Making Arrays
/// File Name: MakingArrays.java
/// Date Finished: 5/9/2016
public class MakingArrays {
public static void main(String[] args) {
int[] arrInt = new int[3];
arrInt[0] = 1;
arrInt[1] = 7;
arrInt[2] = 50;
System.out.println(arrInt[0] + " " + arrInt[1] + " " + arrInt[2]);
String[] arrString = {"Brendan" , "is" , "awesome"};
System.out.println(arrString[0] + " " + arrString[1] + " " + arrString[2]);
}
}
Picture of the output