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
Vera_Pavlovna [14]
3 years ago
7

For java

Computers and Technology
1 answer:
Sedbober [7]3 years ago
8 0

Answer:

public class array{

    public static void main(String []args){

       int[] array = {2,4,7,1,9};

       int num_vals = array.length;

       for(int i=0;i<num_vals;i++){

           

           System.out.println(array[i] + " ");

       }

       for(int i=num_vals-1;i>=0;i--){

           

           System.out.println(array[i] + " ");

       }

    }

}

Explanation:

First create the class in the java programming.

Then create the main function and declare the array with values.

Store the size of array in num_vals variable by using the function array.length.

create a for loop to iterate the each element in the array and then print on the screen with spaces and newline.

it traverse the loop from first to last.

Then, again create the for loop to iterate the each element in the array and then print on the screen with spaces and newline but the traversing start from last to first.

You might be interested in
Derek, a project manager. is involved in an activity that occurs during the system-level requirements analysis. In which activit
Vilka [71]

Derek is involved in the option C.) work breakdown structure activity of providing insights about the design.

<h3>What is work breakdown structure?</h3>

A Work Breakdown Structure (WBS) is known to be a kind of an hierarchical outline  or division of the tasks that is known to be needed to complete a  given project.

Note that the WBS “breaks down” is seen as the structuring of any given  project into a way that is said to be manageable in its deliverables.

Note also that the deliverable is sent on a task and as such, Derek is involved in the option C.) work breakdown structure activity of providing insights about the design.

Learn more about work breakdown structure from

brainly.com/question/6197566
#SPJ1

Derek, a project manager, needs to create a plan for a software development project. Which approach or document will help him define the tasks required to carry out that project?

A.) tracking application

B.) tracksheet

C.) work breakdown structure

D.) project application

8 0
2 years ago
In what year did commercial use of the Internet become available? 1991 1996 1999 2001
Shtirlitz [24]

1991 I hope its right


8 0
4 years ago
If u had a virus and u didn’t know how must damage will there be and how long will it take for you to notice?
Dimas [21]

<u>The Virus:</u>

A virus can be defined as a malicious program, that breaks into the computer without the consent of the user and sometimes even without the knowledge of the user. Viruses are also of different types and categories.

There are certain kinds of malware and spyware that enter a computer and start encrypting the user's data. Generally, a user gets to know about the existence of a virus when the computer programs begin to misbehave. Some files get corrupted and the user can't access them anymore.

Some files and programs may also get deleted as if they weren't even present on the system. But in case someone has installed good anti-virus software, they will get a notification as soon as some file containing some kind of virus enters the computer.

7 0
3 years ago
In the given switch statement, what will be displayed if the value of var is 3? switch(var) { case 1: System.out.println("Apple"
olga_2 [115]

Answer:

The output of the given program is  

Peach Pear Pineapple.

Explanation:

since the value of var is so control will move to the case 3 directly and executed the statement inside the case 3 so it will print "Peach" in window after that their is no break statement in the case 3 the control moves the case 4 and executed the statement inside the case 4 so it will print "Pear" in window again there is no break statement in the case 4 the control moves the case 5 and executed the statement inside the case 5 so it will print "Pineapple".Finally, the break statement is reached the execution of the program is stopped.

3 0
3 years ago
Rayna wants to create an organizational chart in her document. Which of the following commands should she click in the Illustrat
WITCHER [35]
CHART
that’s my answer
7 0
3 years ago
Other questions:
  • The merge process involves which two types of files?
    5·1 answer
  • Which security control is most helpful in protecting against eavesdropping on wireless LAN (WLAN) data transmissions that would
    6·1 answer
  • Which is not a key factor a programmer uses in selecting the language for a project?
    9·1 answer
  • What is the full form of PDP​
    7·1 answer
  • What is a catalyst? a chemical found in leaves a chemical which promotes a chemical reaction a chemical which reacts with sunlig
    10·1 answer
  • A company has a five-member team in charge of development and maintenance of its information systems. An information system is i
    14·1 answer
  • HELP PLSSSSS!!! I WILL MARK BRAINLIEST FOR THE FIRST AND CORRECT ANSWER!!!
    14·2 answers
  • Sandi wants to check the average grades in her classroom. Which loop or algorithm should she use?
    8·1 answer
  • How was the Big Ben project similar to the investigation you conducted in class to determine if the table was vibrating? How is
    7·1 answer
  • When was there a time that you feel you may have “failed” at something?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!