Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners simple program question

Have Programming Question? Ask it here!
 
 
 


Deanna Owen
simple program question
1 Answer(s)      3 years and 6 months ago
Posted in : Java Beginners


how do i get a java program to take an input from the user and have it terminate by a period and not by pressing enter?


Advertisement
View Answers

September 3, 2011 at 9:04 PM


How to get the input for java programs

public class name{ public static void main(String args[]){ Scanner fi=new Scanner(system.in); BufferReader bf=new BufferReader(fi); int a=bf.readLine(); system.out.println("Value OF input is"+a) } }



Related Tutorials/Questions & Answers:
simple program question
simple program question  how do i get a java program to take an input from the user and have it terminate by a period and not by pressing enter
simple program
simple program  how to print * like triangle
Advertisements
A Simple program
A Simple program  Hi I have written the following code: class FirstRectangle{ public int rectArea(int l,int b){ int farea = l*b; System.out.println("Required Area::"+farea); return farea
A simple question - Java Beginners
A simple question   Design a program to calculate either the square of a number or the square root of a number and display the results. output should be like:- Enter a float value: 6.2 Do you want the (s)quare or square (r
Simple Question - JDBC
Simple Question  Respected Sir/Madam, I am R.Ragavendran.. Can I know the following syntax is valid or not? while(rs.next()) { <% <TR> } Because its not working for me.. It is throwing
simple calculator program in javascript
simple calculator program in javascript  strong textsimple calculator in javascript
simple webdesign program with coding
simple webdesign program with coding  how to design a webpage using html   Please go through the following link: HTML Tutorials
Simple JSP program
Simple JSP program  create a simple jsp page in which number is to be entered by user in jsp page and submit button clicked.If number entered is greater then 100,then message box "no is greater" elseif less "no is lesser
Java simple question - Java Beginners
Java simple question  I have to design a program for a trucking company that has 7 trucks in its fleet. Each truck is identified by a number, 1-7.... Truck 7 Max = 30K weight = 20K. (8 possible dialog boxes: program instructions
Simple Java Question - Java Beginners
Simple Java Question  [color=#0040BF] Dear All, I have a huge text file with name animal.txt, I have the following sample data: >id1 lion >id2 horse cat >id3 mouse tiger I need to save the contents
JSF Simple question - Java Server Faces Questions
JSF Simple question  I have h:dataTable (with 10 position) i need write simple jsf file that represent only 5 position and on another page last 5 position . How can i proceed from first page to second
Java program question ...
Java program to draw a triangle of stars given N the number of stars at the bottom line  Write a program to draw a triangle of stars given N the number of stars at the bottom line. can assume that N will always be an odd number
Hibernate Simple Program Using Java Application with Eclipse
Hibernate Simple Program Using Java Application with Eclipse  How to write Hibernate Simple Program Using Java Application with Eclipse? I wish to learn Hibernate using very popular Eclipse IDE. Share me the best tutorial link
Help me to write this simple java frame program
Help me to write this simple java frame program   I want to write a Java program for.... To create a frame with 4 text fields;name,street,city and pin;with suitable labels. Also add a button "OK". After enter values
Simple Program Very Urgent.. - JSP-Servlet
Simple Program Very Urgent..  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your superb reply. I find a simple problem which i have tried my level best to solve.In the output, the text box is receiving some other value
program code for this question - Java Beginners
program code for this question  QUESTION 2: Address Information... as an IP lookup tool. The program reads a search phrase (which could either be an IP... file. The program should display the IP address together with all the associated
Simple Java class program - Java Beginners
Simple Java class program  Hello, Please help me, Write a simple class that iterates through all the arguments passed in on the command line and prints them out to the screen. If no arguments are specified print a message
Simple Java class program - Java Beginners
Simple Java class program  Hi sir, Please help me Write a simple class that iterates through all the arguments passed in on the command line and prints them out to the screen. If no arguments are specified print a message
program code for this question - Java Beginners
program code for this question  QUESTION 1: Electricity Bill Tshubang Energy Pty (Ltd) is a company that supplies electricity to its customers.... Program should send each customer?s bill to a text file whose name is the customers?s
C Program Question - Development process
C Program Question  How i can calulate sum of First digit and last digit of Five Numbers. e.g 12345 i want to calculate 1+5=6 how i can calculate in C Program?   Hi Friend, Try the following code
please give me an idea to develop a program for this question?
please give me an idea to develop a program for this question?  How to enter a text or number from keyboard without using InputStreamReader method in java
Very simple `Hello world' java program that prints HelloWorld
Hello World Java Simple Java Program for beginners... to develop robust applications. Writing a simple Hello World program is stepwise... HelloWorld.java - the source code for the "Hello, world!" program
session realtime usage program simple jsp program or servlet ,which understands me importance of session
session realtime usage program simple jsp program or servlet ,which understands... like client state storage scope.,but jsp or servlet realtime simple session related program whether it may be loginpage or anything must simple understanding
Simple java program
Simple java program Hi this is the thing we got to do and i am totally confused on how to write this program it would be a great help i could be helped... that program. plz do help me out here. Part I Write a program
Simple program to combine all html,ajax,java,servlets,jsp,json - Java Beginners
Simple program to combine all html,ajax,java,servlets,jsp,json  Hi... a program which is a combination of all those technology. For that, i planned to design a simple html page with a input field and submit button. I tried to do
please give me a java program for the following question
please give me a java program for the following question  Write a java program that displays multiple frames : Step 1: Design a frame with three buttons: ?Fruit?, ?Bird? and ?Animal? Step 2: On clicking ?Fruit? button
Writing Simple Java Script Program
Writing Simple Java Script Program   ... of JavaScript and create your first JavaScript program. Creating your first JavaScript Program In the last lesson you learned how to create simple java script
code for a simple java program which performs basic arithmetic operation addition,subtraction,multiplication,division........
code for a simple java program which performs basic arithmetic operation addition,subtraction,multiplication,division........  code for a simple java program which performs basic arithmetic operation addition,subtraction
Question
Question   When there is an exception in my program how java runtime system handles
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
question
question  please give me a simple program using bean + jsp + mysql
java program.. the question is scary ...please help - Java Beginners
java program.. the question is scary ...please help  Modify the Lexer..., etc. 4. Print each token with line number READLINE: program { int i int j program left: 0 right: 6 line: 1 { left: 8 right: 8: line: 1 int
Class Average Program
Class Average Program       This is a simple program of Java class. In this tutorial we will learn how to use java program for displaying average value. The java instances
simple pgm
simple pgm  a java program which uses super class
question
question  dear sir/madam my question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned question...we have to compare each and every word
question
question  i need a simple jsp code for monthly salary calculation
question
question  i need a simple jsp code for monthly salary calculation
question
question  Dear sir i had some typing mistake at previous question so its my humble request to let me know the steps to start the tomcat6 under the tomcat directory
question
question  Sir, please give me a simple jsp code to upload images to a folder
question
question  Sir, Please help me to develop a simple search engine model in java , send me some codes
question
question  i need a simple jsp + mysql code for trigger after insert
question
question  i need a simple javascript or jsp code to send message from one mail to another mail
question
question  i need a simple javascript or jsp code to send message from one mail to another mail
question
question  i need a simple code to display all employees on leave using jsp and mysql
Question?
Question?  My question is how to: Add a menu bar to the program with a File menu. In the File menu, add a submenu (JMenuItem) called About. When the user clicks on the About menu item, display a JOptionPane message dialog
question
question  Dear Sir, could you please send me a simple example of java and database connectivity with java and sql   Please visit the following link: JDBC Tutorials
question
question  i need a simple jsp + mysql code to display all absentees.and please send,if have any option to send any notification message to user who forgot to mark attendance
question
question  good afternoon sir, please send me a simple Jsp or Java code to display a calendar with Indian public holidays,current date and time.It is very urgent,please consider and me as soon as possible
question
question  Dear Sir, Could you please send me a simple and standard example including Java bean class , use of that bean class in JSP   .../usingbeansinjsp.shtml http://www.roseindia.net/jsp/simple-jsp-example/UseBean.shtml http
Advertisements
 

 

 

DMCA.com