Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
another changing method problem
Jose Cisse
Greenhorn
Posts: 28
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
private void addinventoryItem() { System.out.println("\nAdd Book Item"); System.out.print("Name: "); String name = in.readString(); System.out.print("Price (in pence): "); int price = in.readInteger(); InventoryItem inventoryitem = new InventoryItem(name, price); inventoryItem.add(inventoryItem); }
is there anything wrong with it???
THX~~~
Vinayak patil
Ranch Hand
Posts: 67
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
What problems are you facing with this code?
What do you expect it to do it is not doing? Is giving a compile time error or throwing an exception at run time?
"I can resist everything except temptation"
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
compareTo and clone, protected access error
how to creat a searching code?
Accessing objects from Collection
HELP NEEDED~~
how to deal with this error???
More...