Hello, I'm new to Java, can someone help with the task? You need: 1. Enter a three-digit number 2. Enter the number of numbers on the right.
In general, the question itself: how to divide this three-digit number into numbers? If for example to keep the number 657 and the number of numbers on the right 2, to get 57. What should I use?
substringmethod to take the last characters, then throughInteger.parseInt(ВАША_СТРОКА_С_ЧИСЛОМ)converted into an integer - Alexey Shimansky