r/learnjava • u/[deleted] • Dec 08 '17
Calling methods of a different class query
Hi guys.
Say I have a method in class A.
I then wish to call the method from class A in public static void main(String[] args).
How would I do so?
0
Upvotes
6
u/[deleted] Dec 08 '17
Since this is a homework assignment, and, as other users have stated, you are needlessly flooding the subreddit, please read your coursebook and finish the tutorials in the sidebar.
It is simply impossible to not grasp the concept of methods, scopes, getters/setters and private/public fields after finishing the MOOC.
Please don't be ignorant.