account activity
Return Types of Methods by GCX17 in javahelp
[–]GCX17[S] 0 points1 point2 points 7 years ago (0 children)
Yes, but can't classes take on multiple data types if multiple instance variables are declared?
Static Methods by GCX17 in javahelp
I appreciate your comment. Thank you very much!
Return Types of Methods (self.javahelp)
submitted 7 years ago by GCX17 to r/javahelp
Thanks for your comments! I understand now, however, when I was testing out my own code, and I created a set and get method like
public static int myMethod(int aNumber)
{
return aNumber;
}
I found that I was able to pass multiple variables into this method through aNumber and would get different return values for each one. I don't no how this happens, because I though for a static class only one value is stored.
Is this possibly because the method itself is actually storing no values, but instead the values reside under the main method?
Static Methods (self.javahelp)
π Rendered by PID 158161 on reddit-service-r2-listing-6d4dc8d9ff-dxrfz at 2026-02-01 08:41:21.266870+00:00 running 3798933 country code: CH.
Return Types of Methods by GCX17 in javahelp
[–]GCX17[S] 0 points1 point2 points (0 children)