loading varables
From: Randy Tingley (rtingley_at_nep.net)
Date: 04/03/04
- Next message: Roedy Green: "Re: loading varables"
- Previous message: Lāʻie Techie: "Re: is this the best way?"
- Next in thread: Roedy Green: "Re: loading varables"
- Reply: Roedy Green: "Re: loading varables"
- Reply: Mike Hoover: "Re: loading varables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 2 Apr 2004 19:21:30 -0500
I have a variable "book" which askes the user for four titles which will be
with one patron's name.
How would i load this with a loop?
Some how I am getting lost?
Thank you.
input Patron's name
name = reader.readLine("Enter the first patron's name: ");
patron.setName(p);
for (int i = 1; i <= 3; i++){
Book = reader.readLine("Enter the book's title: ");
Book.setBook(i, Book);
- Next message: Roedy Green: "Re: loading varables"
- Previous message: Lāʻie Techie: "Re: is this the best way?"
- Next in thread: Roedy Green: "Re: loading varables"
- Reply: Roedy Green: "Re: loading varables"
- Reply: Mike Hoover: "Re: loading varables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|