viernes, 11 de marzo de 2016

#Java - how to grab the arguments of a main class

Hello,
To make this possible, use the following code:


String a = args[0];

And do the same for more arguments in case you sent them:

String b = args[1];
String c = args[2];
String d = args[3];

Share this trick with your friends!

No hay comentarios.:

Publicar un comentario