Look here 123
ahA 4
9
153
8rD
the a[0][0] = 97
the a[0][1] = 104
the a[0][2] = 65
the a[0][3] = 32
the a[1][0] = 52
the a[1][1] = 13
the a[1][2] = 10
the a[1][3] = 57
the a[2][0] = 13
the a[2][1] = 10
the a[2][2] = 49
the a[2][3] = 53
the a[3][0] = 51
the a[3][1] = 13
the a[3][2] = 10
the a[3][3] = 56
Now , step by step.
What does it mean System.in.read() that means it returns you every
character in bytes .
The char value 'a' equals 97 in bytes
'h' = 104, 'A' = 65 , Whitespace = 32, '4' = 52, enter = 13 and 10
(end of line depends from system), '9' = 57 and so on
characters of 0..9 , a..z, A..Z are reserved in range of (48 - 57
), (97 - 122), (65 - 90)
comma = 44, dot = 46 and so on
Use readLine() or read(byte[] b, int start, int len) functions Or
do casting like (char)System.in.read();.