You are viewing a single comment's thread. Return to all comments →
getArray[i] = scan.next(); this is an error.It cannot be converted into string.
getArray[i] = scan.nextInt(); this is correct statement.
Seems like cookies are disabled on this browser, please enable them to open this website
Left Rotation
You are viewing a single comment's thread. Return to all comments →
getArray[i] = scan.next(); this is an error.It cannot be converted into string.
getArray[i] = scan.nextInt(); this is correct statement.