A
A
allaga2019-02-24 17:24:41
OOP
allaga, 2019-02-24 17:24:41

How to find out the names of properties and methods?

Hey!
I am new to programming. I always have one question that I can't figure out. Below is an example code in Java.

public class Main
{
  public static void main(String[] args) {
    System.out.println("Привет");
  }
}

Question: how do I know when writing code that instead of "out", for example, should not be "output"? Where does such information come from?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2019-02-24
@allaga

You call a method of the System class.
Therefore, you study the standard libraries, find out what methods System has and why it is needed.
In modern programming without knowledge of standard methods - nowhere. Or did you think only for/if needs to be taught?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question