Code Tricks
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
Entrada más reciente
Entrada antigua
Página Principal
Suscribirse a:
Comentarios de la entrada (Atom)
No hay comentarios.:
Publicar un comentario