Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Goals while learning Java?

I am attempting to learn Java, and I am beginning to get a little confused. I think if I set some goals for (kind of) simple programs I can figure out how to write, I will be able to learn more easily. What are some goals for me?

P.S. - I have already been able to sum up numbers/ find averages from an array, made a table from a multidimensional array, etc. I'm getting a little bit confused with making new methods and using multiple classes. Thanks.

1 Answer

Relevance
  • 1 decade ago
    Favorite Answer

    You learn by writing your own ideas. Methods make code manageable. Try writing "Let's Make A Deal" as a console game using a method for each little action. You know, "we have 3 doors... behind two of them is a goat! And behind one of them is a brand new car."

    You immediately consider a class when you have a 'basket' of various types. A class is nothing more than a fancy array. With an array you use the arr[ xxx ]. With the class' Object you use the varName.

Still have questions? Get your answers by asking now.