473,473 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Java scanner

2 New Member
Hi i'm doin an assignment and i got stuck at java scanner. i not sure how to use it ,. need help thanks alot.

The program goes like this :_

1. read name age to file
2. print file's content
3. exit the program

Pls choose the above command :-

so therefore the thing is that i have to key in the int 1, 2 or 3 from the keyboard ...meaning either one of the int to redirect to another page and i believe java scanner is needed to do this

like if i key 1 from the keyboard the page should be redirected to another page.
Thanks for ur help...appreciated if u guys out there could help mi
God bless u :)
Oct 13 '06 #1
2 2954
Cutekoolrose
2 New Member
Pls help ...
Oct 15 '06 #2
r035198x
13,262 MVP
Hi i'm doin an assignment and i got stuck at java scanner. i not sure how to use it ,. need help thanks alot.

The program goes like this :_

1. read name age to file
2. print file's content
3. exit the program

Pls choose the above command :-

so therefore the thing is that i have to key in the int 1, 2 or 3 from the keyboard ...meaning either one of the int to redirect to another page and i believe java scanner is needed to do this

like if i key 1 from the keyboard the page should be redirected to another page.
Thanks for ur help...appreciated if u guys out there could help mi
God bless u :)
What pages are you talking about?Web pages?
Do you want to open files depending on which number was typed in or do you want to store name and age typed in into a file?
Sorry I think you need to explain a bit more of what you want to do
Oct 16 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Andrew Bell | last post by:
I'm doing a uni course in the UK and one of my semesters is about programming. This is just going to be compilied and executed with no menu just using command promt (javac classfile.class) I am...
2
gekko3558
by: gekko3558 | last post by:
I have not worked with java in a while, and all i'm trying to do is read these numbers from a file into a 2D array. This is my code import java.io.*; import java.util.*; public class...
6
by: aureao4 | last post by:
I'm new to Java and programming. I'm trying to code a payroll program and continue getting errors. The program worked last week, this week I have to add set, get and a class. I've written the class...
1
by: saytri | last post by:
Hi i'm a student studying java (i'm still a beginner). i have a project were i have to do a quiz with a set of questions. So i think that i have to type the questions in a textfile for example in...
1
by: mshroom12 | last post by:
Hello to all. I am having difficulty trying to do this Java project using Eclipse. The following is what I have to do. Election Day It's almost election day and the election officials need a...
4
by: NickiWood | last post by:
I am in a beginners Java programming class. So far I am doing ok in the class, although there are some things that I am sure will come in time. Right now we are doing an onging project that started...
4
by: chetah | last post by:
bd.txt D2333 How to program in Java r IN 454554 Dietal & Dietal Prentice Hall G4547 Java in a Nut Shell c 343345 David Flagman O'Reilly 03-02-08 END 678764 John Smith...
1
by: jimgym1989 | last post by:
I dont get it..why is the error: Exception in thread "main" java.util.InputMismatchException this is my code /** * @(#)textFileRead.java * * * @author * @version 1.00 2008/10/17 */
7
by: schrum312005 | last post by:
Hey guys, I'm a college student in my first programming class and I'm having trouble with an assignment. The requirements to the assignment can be found here:...
6
by: paradox6996 | last post by:
import java.util.Scanner; public class Program01C { public static void main(String args) { double purchase, totalTax, salesTax, countyTax, total; salesTax = 0.04; countyTax =...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.