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

3

u/desrtfx Dec 09 '17

Ahem... https://i.imgur.com/P7qEUPW.png

/u/throwaway_for_cause is a moderator and even if he weren't, he could still state his opinion without you having even the slightest right to go against him.

You are again misbehaving and have been in the entire thread. If you don't learn to properly behave yourself and stop your constant threatening and reporting, you will face consequences.

Even your mail to the moderators was inappropriate. Moderators have full rights how to run their communities and full responsibility. They can do in their communities basically what they want.

Your behavior is unacceptable, and you have been called out by members of the community who are here longer than you are. It is their full right to call you out when you're misbehaving. Moderators or not. Instead of going against those people, you should accept what they are telling you and change your attitude.

A single more step out of line will get you permanently banned.

You don't need to report this as offensive, abusive, or threatening. I'm just stating facts and warning you.