vendredi 20 mars 2015

How to turn an array of String into integer? [duplicate]




This question already has an answer here:




If a user enters inputs from COMMAND LINE in a some random java file, how does public static void main (String [] args) translate into integer? Suppose, a user enter the following String through the cmd: adasd w w w 1 2 3 4 asds wwss. How can one extract those Integer numbers from the entered String? And how would one put numbers like (1,2) (3,4)? Thanks in advance!




Aucun commentaire:

Enregistrer un commentaire