ad

FREQUENTLY ASKED QUESTIONS IN JAVA PROGRAMMING LANGUAGE


With the upgrade in Technology virtually all things can be done. But have you ever wondered if Technology can be used to do so many amazing things than the things we know. Different programming languages help to carry out various tasks while using technology. But you might wonder what these programming languages are. We have different types of those programming languages like
·         JAVA
·         Phyton
·         C#
·         C++
….. and the likes of them.
But in this post we will be discussing about JAVA and frequently asked questions.
JAVA programming language is one of the best selling programming languages with lots of amazing things compiled in it. It can be used to design things like.
a.              Application servers
b.             Web applications.
c.              Unit tests.
d.             Mobile applications.
e.             Desktop applications.
f.               Enterprise applications.

In recent years there have been so many questions bothering peoples mind concerning JAVA but in this post we will be answer some of those question and challenges we face we working with JAVA.
FREQUENTLY ASKED QUESTIONS
1. Is it possible to write a JAVA program that can enter 10 values/numbers and print the values in reverse order.

ANSWER
It is possible to write a program which can enter 10 values and print them in reverse order.
To give a solution to this we will introduce (String read="";). This particular function has the ability to read values which had been entered in a program.
Below is the solution to the question


import java.util.*; 
public class Reverse { 
 public static void main(String[] args) { 
 // TODO Auto-generated method stub  

Scanner input=new Scanner(System.in); 

int value; 
String read=""; 
for(int i=0; i<=10; i++){ 

 System.out.println("Enter Value"); 
 value=input.nextInt(); 

 read= value + "," + read ; 

 System.out.println("Reverse=" + read); 

}


That will be all for now. Thanks for reading our posts. Do call back latter for other interesting solution to FREQUENTLY ASKED QUESTIONS. Bye for now.




Post a Comment

1 Comments