A way to think of java classes and methods is that it is a way of modelling something in the real world...
Classes have attributes which are variables (int/string/array/other even classes) and methods which are a way of 'doing' something to the class...
In order to 'use' a class, you have to instantiate it, and then you get an object... and a Class just has all the bits of stuff about the thing you want to model.
methods look like:
Code:
public void doSomething(String s) {
System.out.println("string:" + s);
}
the 'void' means that nothing is being returned... you can pass a method some variable, and perform an action on that variable and then return the modified variable out again..
hmm i've mostly just waffled..