That is the thing I dont have much at all... Im stuck! Dont even know where to begin.
Main Topics
Browse All TopicsI bought this used book to learn JAVA on my own, Dummies of Java. However this one example Im trying to do is missing information. I thought I would come here for help, the internet had nothing! Im trying to do do a Money class program with examples of the following:
· Objects (instances)
· Instance Variables (attributes or properties)
· Methods
· Messages
· Interfaces
· Encapsulation
· Inheritance
· Polymorphism
Can someone please work with me on this example. I find JAVA to be very interesting but Im stuck.
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This is a good place to start:
http://java.sun.com/docs/b
You need to get the basic OO concepts first:
http://java.sun.com/docs/b
What about the Sun tutorials don't you understand?
Like CEHJ suggested, post some work related to what you are stuck on
Everything you've listed should be found at the Sun tutorials,
e.g., Objects:
http://java.sun.com/docs/b
The link CEHJ provided is probably the best place to start. It deals with programming concepts without using a whole lot of code.
>Thanks... I have been there!
I've been there too! Many times. I still frequent the Sun tutorials and don't fully understand it all. I could not explain java better. I know that it can be confusing and frustrating. You might want to try rewriting (in your own words) what you are learning. I've always found that effective. You might even want to post your own summary of a concept for experts to comment on.
Thanks for the question -CyberIT-,
You are not the only one who is here to learn!
Let kick start the first 3 examples & we leave the rest to you.
The code below would have tackle the point 1-3
· Objects (instances)
A object named Money
· Instance Variables (attributes or properties)
With 1 variable currency
· Methods
Get the currency
public class Money{
private String currency = ""
public Money(String currency){
this.currency = currency;
}
public String getCurrency(){
return currency;
}
}
You have 5 more to go & of course to improve the code further
· Messages
· Interfaces
· Encapsulation
· Inheritance
· Polymorphism
Hope this with encourage u to add on.
All the expert here will be glad to comment on your work.
It depends on the context. There are advance messaging APIs that I won't comment on here. In general I would say that a message can be printed to screen in one of two ways -command-line (System.out.println("messa
However, in the context of OOP you may be reading about sending a message to an object. You can pass information to an object, or call one of an objects methods. What are you reading in relation to messages?
You mentioned that you were reading "Dummies of Java" (Translation?). I think you meant "Java for Dummies". How old is the book? If it is 10 years old you are better off learning Java from online sites.
OK ... I created my own program here. However it compiles but I cant run it without getting some errors. These are the error messages:
Exception in thread "main" java.lang.ArrayIndexOutOfB
at mortgageCalc_v5.<init>(mortg
at mortgageCalc_v5.main(mortg
Can anyone help me through these errors?? I will post my code too.
Thanks in advance!
Business Accounts
Answer for Membership
by: CEHJPosted on 2009-01-11 at 13:01:12ID: 23349692
Please post your work so far