new semester, new repo structure
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||
*/
|
||||
package lab15_calebfontenot;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author caleb
|
||||
*/
|
||||
public class Array1 {
|
||||
public static void main(String[] args)
|
||||
{
|
||||
double[] myList1 = {1.1, 2.1, 3.1, 4.0};
|
||||
double[] myList2 = new double[3];
|
||||
|
||||
myList2[0] = -1.1;
|
||||
myList2[1] = -2.1;
|
||||
myList2[2] = -3.1;
|
||||
myList2[3] = -4.1;
|
||||
|
||||
System.out.println(myList1[2]);
|
||||
System.out.println(myList2[2]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user