So i've got a little proble with my code. The idea is to take a number for example 1234567890 and seperate its digits to : 1,2,3,4,5,6,7,8,9,0 or 0,9,8,7,6,5,4,3,2,1...For that a thought an algorithm but it doesnt work. Could u please check it!?!?!
package javaapplication16; public class JavaApplication16 { public static void main(String[] args) { int x =1234567890; int y; for(int i = 1; i<10; i++){ y = x % 10^i/10^(i-1); System.out.println(y); } } }