what do you mean "move between methods"?
You want to call one method from another? Check your textbook, see those braces?
Learn the language syntax and all will become clear, or at least clearer than it is now.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
You use DOT notation (much like you do in VB I think.)
ClassInstanceName.MethodName(Optional parameters)
So if you have:
String myString = "Something";
// Then you could say:
System.out.println( myString.toUpper() );
'.toUpper' is a method of the String class that will output the string in upper case. :cool:
jerbo
Junior Poster in Training
84 posts since Sep 2004
Reputation Points: 11
Solved Threads: 1
Opps, that was to call a method in a class.
Same way in VB. Use the method name. Just consider if you have a return value in the method, if so then you need to assign the return value to the same type.
jerbo
Junior Poster in Training
84 posts since Sep 2004
Reputation Points: 11
Solved Threads: 1
Simple:
//Assuming you have a String Array (String args[]), lets call it:
String[] myStringArray = new String[2];
// And assuming you initilized myStringArray to somenting, you would have:
DrawCraneKitbox(myStringArray);
Since the Method was decalred asvoid, it has no return type. I would assume you want 'DrawCraneKitbox' to just do something. and then execute the next line of code.
jerbo
Junior Poster in Training
84 posts since Sep 2004
Reputation Points: 11
Solved Threads: 1