1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
svp [43]
4 years ago
5

1) Write a statement that defines an array of four integers named miles. The array should be initialized with the values 1, 5, 9

, and 22.
2) Write a statement that defines an array of string objects nameddirections. The array should be implicitly sized, with an initialization list containing the values "Up", "Down", "Left", and "Right.
Computers and Technology
1 answer:
Montano1993 [528]4 years ago
5 0

Answer:

Explanation:

The following code statements are written in Java and are simple one line statements that can be into any Java code or function. The first code statement creates a simple integer array with 4 predefined values initialized.

1) int[] miles = {1,5,9,22};

The second code statement creates a simple String array with four-string objects in it.

2) String[] nameddirections = {"Up", "Down", "Left","Right"};

You might be interested in
PLEASE PLEASE PLEASE PLEASE help me Im completly lost will give brainliest and 50 points
pav-90 [236]

It can be either a or b.. I suggest go with b

3 0
3 years ago
Read 2 more answers
MORE FREEE POINTS AYEEE
Lerok [7]

Answer:

Hehehehehe

Explanation:

6 0
3 years ago
Read 2 more answers
Suppose company A wants to develop a program that duplicates the functionality of a programm by company B. Describe how company
kompoz [17]
The design of the software is covered by copy right unless it is open sourced or is a very common interface. They would need to come up with their own design and way of solving the problem to have a solution that was not copyrighted.
5 0
4 years ago
What is the basic unit for storing data in exel
vaieri [72.5K]
<span>the basic unit for storing data in exel is </span><span>The intersection point between a column and a row is a small rectangular box known as a cell. A cell is the basic unit for storing data in the spreadsheet. Because an Excel spreadsheet contains thousands of these cells, each is given a cell reference or address to identify it.</span>
7 0
4 years ago
PLEASE HELP MEH IDK WHAT TO DO!!!!! PLEASE!!!!!!!!!!!!
Over [174]
I would ask myself c
3 0
4 years ago
Read 2 more answers
Other questions:
  • Add the function min as an abstract function to the class arrayListType to return the smallest element of the list. Also, write
    15·1 answer
  • Patrick Stafford's article argues that the growth of mobile phone usage "has given developers the ability to great robust and en
    7·1 answer
  • Which network component connects a device with the transmission media?
    9·1 answer
  • Which of the following is not a reserved keyword in python?​
    13·1 answer
  • Please help me!!!!!!!!
    5·2 answers
  • What are the missing words in the program?<br> divide(numA,numB):<br> numA/numB
    9·2 answers
  • The average American has 10 devices, ask for users average number of devices. Any number between 7 and 12 will print “you have a
    13·1 answer
  • ...............is a personal computer that fits on desk.​
    5·2 answers
  • A__ is a part of a GUI that allows a specific type of interaction with the user.
    14·1 answer
  • Why are digital computers more popular these days?​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!