+ 2

To call method what is used in Java

26th Jan 2018, 5:10 PM
Herin Patel
Herin Patel - avatar
2 Answers
+ 1
You only ask a question when you need answers https://www.sololearn.com/discuss/321242/?ref=app
26th Jan 2018, 5:18 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 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;}
27th Jan 2018, 5:38 AM
AnCap Roboticist
AnCap Roboticist - avatar