How can i move between different methods with the same class. When i programmed in VB, it was just the name of the subroutine, but i cant figure it out in java. Please put me out of my misery
rick4324528
0
Newbie Poster
Recommended Answers
Jump to Postwhat 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.
Jump to PostYou 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 …
All 5 Replies
jwenting
1,889
duckman
Team Colleague
jerbo
0
Junior Poster in Training
jerbo
0
Junior Poster in Training
rick4324528
0
Newbie Poster
jerbo
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.