+ 2
To call method what is used in Java
2 Answers
+ 1
You only ask a question when you need answers
https://www.sololearn.com/discuss/321242/?ref=app
+ 1
Example methods
Public static callingBots (String = str, int = cnt) { // takes argument
name = str;
num = cnt;
return name;
return num; }
Public static void main (String [], args) {
callingBots ( "Jeff", 1);
}
I might be off a little because it's been a while, but that should pass two arguments naturally. The alternative is String callingBotName (name) {
Return name;}