Question: 1. Create a new NetBeans Java application project and name it pa3_your-id. As part of the project, NetBeans will create package pa3_your-id and class Pa3_
1. Create a new NetBeans Java application project and name it pa3_your-id. As part of the project, NetBeans will create package pa3_your-id and class Pa3_ your-id (this in file Pa3_ your-id.java). 2. Add the following method to the class Pa3_your-id. // This method receives a parameter giving the size of an array to // create, creates the array, fills the elements of the array with // random integer numbers within the range size/2 to +size/2, and // returns the reference (address) of the array. public static int[] makeArray(int size) { if (size < 1) return null; int[] a = new int[size]; for (int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
