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/[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.

1

u/[deleted] Dec 08 '17

Needlessly?

That is your opinion.....

And as I have said, there has been offensive language which is against the subreddit.

Please don't be so judgemental.

4

u/[deleted] Dec 08 '17

That's lovely and all, but you're missing the point that it is simply impossible not to grasp these basic concepts if you've actually read your books and finished the tutorials. That's just plain ignorant, and blatantly wasting other people's time.

Now, please stop playing the victim and do some actual studying instead of complaining about inefficient faculties and foul language. Worse than foul language is wasting our time and your own.

1

u/[deleted] Dec 08 '17 edited Dec 08 '17

That's lovely and all, but rules ARE rules, and your'e missing the point that I didn't play the victim, I merely pointed out a simple fact. Dare I say...a basic concept impossible to ignore?

Now, please stop pompously scolding me and forgetting your place. You ARE NOT a moderator, or in charge of the site. I have done actual studying.

4

u/[deleted] Dec 08 '17

Naturally, rules are rules. But that does not excuse your ignorance. Furthermore, my place is as a member of society, which gives me the right to call out any bullshit wothin the boundaries of the law. Seems to me I'm doing a fair job at thay, even within Reddit rules.

The fact that you do not understand the basic concepts is a testament of your lack of studying and finishing tutorials. You deliver the proof yourself by posting these basic questions. More shocking is attempting to claim that yoi have studied. Which is fine, just not true.

Now, I could go on and point out your ignorance and negligence, but what good would that do? Ignorance cannot be cured. You will simply feel you are right and we are wrong.

1

u/[deleted] Dec 08 '17

wothin =="Within"

thay=="that"

Ignorance: "lack of knowledge or information".

Ironic that you seem unable to spell....you seem such an expert on the matter of ignorance, exuding such volumes of it yourself.

8

u/[deleted] Dec 08 '17

Ignorant has a certain nuance that implies not only a lack of knowledge, but also the unwillingness to learn. Now, a personal attack on my spelling is perfectly reasonable from the point of view of a wounded ego trying to safe face, so I'll humour you and apologise for making such a grave mistake.

Now, back to actual studying you go. Godspeed