I have an array: [[a, b], [c, d], [e, f]] Array value such as a, b, c, d, e and f must be converted to number (integer).
Let's say a = 0, b = 1, c = 2, ..., f = 5.
So, the result of converting should be: [[0, 1], [2, 3], [4, 5]] Ho to do that in java?
Stephan van Hulst
posted 3 years ago
Converting textual data to other data types is usually referred to as "parsing". Take a look at what methods the Integer class provides.
The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.