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 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 …
Jump to PostOpps, 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.
All 5 Replies
jwenting 1,905 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.