r/learnjava • • 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

22 comments sorted by

View all comments

6

u/throwaway_for_cause Dec 08 '17 edited Dec 08 '17

Have you ever considered doing a tutorial instead of flooding (6 posts in the last 24 hours) the subreddit?

The sidebar here has some of the best Java tutorials in existence in the Free Tutorials section.

You will need a lot more than a couple reddit posts can fill. Take a proper tutorial and learn the correct way.

The MOOC Object Oriented Programming with Java (sidebar) will teach you what you are lacking.

-8

u/[deleted] Dec 08 '17

[removed] — view removed comment

7

u/override_acid Dec 08 '17

No need to be a dick about a valid suggestion.

You have huge gaps in your knowledge that you need filled, so suggesting a tutorial is the appropriate way to go.

This is not the first time you blow up to a perfectly valid comment. You should reconsider your attitude.

You are flooding the subreddit. There is no discussion about that. Flooding is against the Reddit Terms of Service and against the reddit rules about spamming, even if your questions are pertaining to Java and valid.

-4

u/[deleted] Dec 08 '17

You condemn me for my attitude, and yet choose to use curse words? You do realise that also is a clear violation of the Reddit Terms of Service, specifically concerning:

Unwelcome content as well Do not threaten, harass, or bully, in addition to vulgar, harrassing and or offensive.

Perhaps you should follow the rules yourself, before so prissily demanding that of others.

5

u/override_acid Dec 08 '17

Telling you that you behave like an asshole and a dick is neither threatening, nor harassing, nor bullying. It's simply calling you out on your inappropriate behavior that you continue to display.

This has nothing to do with the reddit TOS because I was not calling you this, I was stating that you behave like one - which is a completely different context and meaning.