Quick Java Question

The below is a sample of what I get when I run it, which would appear to make sense?

Code:
Please Enter The Customer's Customer Number
[b]? 0[/b]
Customer Name: Person1
Customer Addrress: Someplace
Customer Telephone Number: 171390173131

Press 1# To Update The Customers Name
Press 2# To Update The Customers Address
Press 3# To Update The CustomersTelephone Number
Press 4# To Return To The Main Menu

[b]? 1[/b]
Please Input The Customers Updated Name
[b]Person2[/b]
Customer Updated Name: Person2

Press 1# To Update The Customers Name
Press 2# To Update The Customers Address
Press 3# To Update The CustomersTelephone Number
Press 4# To Return To The Main Menu

[b]2[/b]
Please Input The Customers Updated Address
[b]this is a new address[/b]
Customer Updated Addrress: this is a new address

Press 1# To Update The Customers Name
Press 2# To Update The Customers Address
Press 3# To Update The CustomersTelephone Number
Press 4# To Return To The Main Menu

[b]4[/b]

Press 1# To Set Up A Rental For A New Customer
Press 2# To Set Up A Rental For An Existing Customer
Press 3# See What Vehicles Are In Stock
Press 4# If A Customer Is Returning Their Rental Vehicle
Press 5# To Show The Income To Date
Press 6# To Edit An Existing Customers Details
Press 0# To Shut The System Down

[b]? 6[/b]
Please Enter The Customer's Customer Number
[b]? 0[/b]
Customer Name: Person2
Customer Addrress: this is a new address
Customer Telephone Number: 171390173131

Press 1# To Update The Customers Name
Press 2# To Update The Customers Address
Press 3# To Update The CustomersTelephone Number
Press 4# To Return To The Main Menu
 
Phil99 said:
The below is a sample of what I get when I run it, which would appear to make sense?

Code:
Please Enter The Customer's Customer Number
[b]? 0[/b]
Customer Name: Person1
Customer Addrress: Someplace
Customer Telephone Number: 171390173131

Press 1# To Update The Customers Name
Press 2# To Update The Customers Address
Press 3# To Update The CustomersTelephone Number
Press 4# To Return To The Main Menu

[b]? 1[/b]
Please Input The Customers Updated Name
[b]Person2[/b]
Customer Updated Name: Person2

Press 1# To Update The Customers Name
Press 2# To Update The Customers Address
Press 3# To Update The CustomersTelephone Number
Press 4# To Return To The Main Menu

[b]2[/b]
Please Input The Customers Updated Address
[b]this is a new address[/b]
Customer Updated Addrress: this is a new address

Press 1# To Update The Customers Name
Press 2# To Update The Customers Address
Press 3# To Update The CustomersTelephone Number
Press 4# To Return To The Main Menu

[b]4[/b]

Press 1# To Set Up A Rental For A New Customer
Press 2# To Set Up A Rental For An Existing Customer
Press 3# See What Vehicles Are In Stock
Press 4# If A Customer Is Returning Their Rental Vehicle
Press 5# To Show The Income To Date
Press 6# To Edit An Existing Customers Details
Press 0# To Shut The System Down

[b]? 6[/b]
Please Enter The Customer's Customer Number
[b]? 0[/b]
Customer Name: Person2
Customer Addrress: this is a new address
Customer Telephone Number: 171390173131

Press 1# To Update The Customers Name
Press 2# To Update The Customers Address
Press 3# To Update The CustomersTelephone Number
Press 4# To Return To The Main Menu
Yes, the problem is I have had to do the following:

set = TextIO.getlnString();
customer.setName(TextIO.getlnString());

to get it working, making set worthless, however replacing the TextIO in set.xxx breaks the thing, as does removing the set before it... if that makes sense
 
Back
Top Bottom