Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Basic Android Programming Generating a Random Number

HAU MUN TUANG
HAU MUN TUANG
1,070 Points

i don't understand about creating a method and class.

i don't understand about creating a method and class. Unfortunately that is the main part of programming out app, so it's so heavy in my mind to continue the next lesson. Please give me advice how to practice and how to learn.

1 Answer

Daniel Hartin
Daniel Hartin
18,106 Points

Hi

This may sound a little counter productive but don't! Java is a little awkward as everything has to be placed inside a class with methods but these are usually covered in more detail later on in the tracks on treehouse. I would argue that the concepts of data types, variables and learning the general feel of how to break problems down into code are fundamentals more important to beginners that knowing what a class and method are and getting bogged down with all sorts of concepts, keywords and acronyms (for now anyway).

As you become more comfortable with the basics (named above) you will naturally become more aware of what a class and method is. For me I tried and tried and tried to grasp what a class was and it never seemed to make sense, so I simply forgot about it and concentrated on the things I could grasp and almost out of nowhere it came to me!.

Trust me when I say, it will come to you! you just need to hang on in there and keep at it.

Daniel