+ 1
What is call function and called function
give one example program
3 ответов
0
public class TooLazy {
public static void main(String[] args) {
PrintText("I'm too lazy for this.");
}
public static void PrintText(String text) {
System.out.println(text);
}
}
0
wy we have to use public static void printText(string text)
0
The "public static void" is an access modifier, while printText() is simply just a method.
Read more about access modifiers here: https://stackoverflow.com/a/33627846