Home Answers Viewqa Java-Beginners Hey Guys really need to learn

 
 


Hazel
Hey Guys really need to learn
1 Answer(s)      3 years and 10 months ago
Posted in : Java Beginners

View Answers

July 15, 2009 at 10:42 AM


Hi Friend,

There are lot of ways to input data.You can use the methods of BufferedReader class, Scanner class, StreamTokenizer class to input the data from the command prompt.

Try the following code to input three integers from the command prompt.

import java.util.*;

public class UserInput{
public static void main(String[]args){
System.out.println("Enter three numbers:");
Scanner input=new Scanner(System.in);
int num1=input.nextInt();
int num2=input.nextInt();
int num3=input.nextInt();
System.out.println("You have entered numbers: "+num1+","+num2+","+num3);

}
}

Thanks









Related Pages:
Hey Guys really need to learn - Java Beginners
Hey Guys really need to learn  Im a java beginner and i want to know how can i input 3 value.. Wath i mean is in C, to you to be able to input number u will use scanf(%d%d%d, & month, day, year). How can i do this in java
guys,, need help,, in java programing,, arrays
guys,, need help,, in java programing,, arrays  create a program where you will input 10 numbers and arrange it in ascending way using arrays
Hey guys, I'm new to this forum..select onclick show all fieds in textarea in line by line(name,address,state,country,mobile)
Hey guys, I'm new to this forum..select onclick show all fieds in textarea in line by line(name,address,state,country,mobile)  <script type = "text/javascript"> function get_val() { var option
learn
learn  i need info about where i type the java's applet and awt programs,and how to compile and run them.please give me answer
What you Really Need to know about Fashion
What you Really Need to know about Fashion You might think... know about fashion, even if you are not really interested in following... on. Of course, we say this again, there is no need for you to follow these trends if you
Learn Java - Learn Java Quickly
Learn Java - Learn Java Quickly   ..., it is impossible to run Java. So its portability really made it possible in developing...(String[] args)    {   System.out.println("Hey! you
really need help on how to write this program plz some 1 help out. - Java Beginners
really need help on how to write this program plz some 1 help out.  i am confused here on what to write can some 1 help out here i dont quite understand how to code it so can some 1 help out. Part II Write, compile and execute
Social Media Marketing: Do you really need it?
Social Media Marketing: Do you really need it? Social Media Marketing might... for nothing is not really a good idea. The first thing that you need to consider... and you will have trouble turning a profit. In this case you don't really need
hello there i need help
i am a beginner, and aside from that i am really eager to learn java please help me with the codes and please explain to me how it works. i only need to use...hello there i need help  : i need to do a program like
Please help need quick!!! Thanks
Please help need quick!!! Thanks  hey i keep getting stupid compile errors and don't understand why. i'm supposed to use abstract to test a boat race...(); ^ 6 errors any help would be appreciated guys. Thanks so
Need of JUnit
Need of JUnit  Hi sir, What makes JUnit better than other... pros & cons of technology, you are going to learn. So here are some key... and they check their own results and provide immediate feedback. There's no need
Really Simple History (RSH)
Really Simple History (RSH)       The Really Simple History (RSH) framework makes it easy for AJAX applications to incorporate bookmarking and back and button support. By default, AJAX
Hey neighbor, can you lend some Hammers?
Hey neighbor, can you lend some Hammers?  import java.util.Date; public class AccountProblem { public static void main(String[] args) { //create an instance object of class Stock Account myAccount = new Account
Hey neighbor, can you lend some Hammers?
Hey neighbor, can you lend some Hammers?  import java.util.Date; public class AccountProblem { public static void main(String[] args) { //create an instance object of class Stock Account myAccount = new Account
LOGIC
LOGIC  hey guys..i have my exams coming in somedays and it would be really helpful if someone explained how to develop the logic of any program
LOGIC
LOGIC  hey guys..i have my exams coming in somedays and it would be really helpful if someone explained how to develop the logic of any program
JDBC Training, Learn JDBC yourself
learn our JDBC training online series. Software Need for Online JDBC Training... will learn how to connect the MySQL database with Java file. We need to establish...; JDBC Training - Learn JDBC yourself: In this section we
need help...................please
need help...................please  I have a problem in my JSP Coding. How to retrive value from database in to text field when user select one value... should show in texfield that already create in the web page. I'm really stuck
need
need  i need a jsp coding based project plz help me
Need *Help fixing this - Java Beginners
and maybe add retrieve function //need help with this one badly. Thanks guys for all...Need *Help fixing this  I need to make this program prompt user...) { } } public static void main(String args[]){ //need to add: prompt
JSP:NEED RESPONSE ASAP PLEASE! - JSP-Servlet
JSP:NEED RESPONSE ASAP PLEASE!  Hi freind, If you could respond to my previous thread which hasn't been addressed for over a week, I'd really...) column with a date. Im putting up the code, really appreciate if you can respond
servlet not working properly ...pls help me out....its really urgent
servlet not working properly ...pls help me out....its really urgent  Hi, Below is the front page of my project 1)enty.jsp </form> </body> </html> </form> </body> </html>> <
Guys Help me with this Application(when you put the name of the website it will return the IP of the web)
Guys Help me with this Application(when you put the name of the website it will return the IP of the web)  import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; public class MyApp extends
Guys Help me with this Application(when you put the name of the website it will return the IP of the web)
Guys Help me with this Application(when you put the name of the website it will return the IP of the web)  import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; public class MyApp extends
Learn Management
Learn Management  Hi, How to learn Management online? Thanks   Hi, You can learn management at Management tutorials section. Thanks
learn jquery
learn jquery   is it possible to learn myself jquery,ajax and json   Yes, you can learn these technologies by yourself. Go through the following links: Ajax Tutorials JSON Tutorials JQuery Tutorials
learn jquery
learn jquery   is it possible to learn myself jquery,ajax and json   Yes, you can learn these technologies by yourself. Go through the following links: Ajax Tutorials JSON Tutorials JQuery Tutorials
Learn how to take MySQL Backups and restore the same.
Learn how to take and then restore the MySQL database backup. You can use mysqldump utility to take the backup of MySQL database and tables with or without data as per your need. There are many ways to take the back of your database
urgent need in two days - JSP-Servlet
(); } }}  According to above-mentioned code, you need to create three..., JavaScript and java. You not only learn how to use these java technologies
Learn Ajax
Learn Ajax  Hi, Give good links to learn ajax. What is the correct url at roseindia.net to learn Ajax? Thanks   Hi, If you are beginner in Ajax start learning from the index of Ajax tutorial. Start learning Ajax
to learn java
to learn java  I am b.com graduate. Can l able to learn java platform without knowing any basics software language.   Learn Java from the following link: Java Tutorials Here you will get several java tutorials
Learn java
Learn java  Hi, I am absolute beginner in Java programming Language. Can anyone tell me how I can learn: a) Basics of Java b) Advance Java c) Java frameworks and anything which is important. Thanks
learn CVS
learn CVS  How i can use cvs in eclipse, How i can check in and cheack out my project
It?s Easy to See Why You Should Learn PHP
and easy for anyone to learn how PHP can work. Here are some reasons why a person should learn how to use PHP. There is a very good reason why it is important to learn how to use PHP. This is because PHP is becoming one of the most commonly
Need of ORM
Need of ORM  Why do you need ORM tools like hibernate
need of code
need of code  howto convert greyscale image to binary image in java
need coding
need coding  sir i need code for simple bank application in jsp please send it   sir i need the coding for simple bank application in jsp.   Please visit the following link: Jsp Bank Application
Need Suggistion
Need Suggistion  how to call a callable statement in our jSp page using Struts environment
urgent need
urgent need   Input a line. Count the number of words that start with a capital letter
How to add dynamically rows into database ?Need help pls
How to add dynamically rows into database ?Need help pls  Hi everyone, I really have a problem of insert multiple rows into the database.Now i can only insert one row into the database.How can insert the rest of the row
Need Project
Need Project  How to develop School management project by using Struts Framework? Please give me suggestion and sample examples for my project
need query
need query  hi sir , i am beginner to sql.i need a query so that it can be helpful to my project. i have four tables each containing different fruits with different amounts. i need a query in such a way that when i say some
need project
need project  hi im new on this site so dnt knw actual procedure . but i need a project on banking system in java with sql database. which should... is good plz add it i need project till Saturday i.e 10th march 2012 plzzzz
How would you honestly evaluate the strengths and weaknesses of your previous/current company/boss/team?
deal with a situation like this. You might be really tempted to unburden your soul... circles, you need not show any in-depth knowledge of literature. However always... them. With this strategy, you can make a really great impression. 16. Describe
need answer
need answer  Given a phone number, as a string, generate the lettercombinations that are possible based on the telephone keypad's number/letter relationship (ie, 1 is related to no letters, 2 is related to 'a' 'b' 'c', 3
Need help
Need help  Hello... I need some help I have a method which contains 1 string value and i wnat when this method get called den that string value should b assigned as array name.. for example.. i have a method name() which

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.