Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Please assist with the below questions for the following code. Question: If an array had not been chosen to hold the data manipulated in this...

Please assist with the below questions for the following code.

Question:

  1. If an array had not been chosen to hold the data manipulated in this program, how else (i.e., with what other data types) could it have been represented?
  2. Which approach, using an array or using the alternative you identified in question #1, is shorter/easier?
  3. What is the output of this program?
  4. What would be the result of using a println() statement to display the value of arraynum[8]?
  5. How many values can arraynum contain, and why?

import java.util.*; // import the java utilities classes which we will need to sort our array

public class PRG420Week4_AnalyzeAssignment {

  public static void main(String args[]) {   

    int[ ] arraynum;

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question