import java.util.Arrays; public class TestCalc{ public static void main(String[] args) { int digit[]={1,2,3,4,5,6,7,8}; //System.out.println(Arrays.asList(digit)); // [[I@193c0cf] System.out.println(Arrays.toString(digit)); // [1, 2, 3, 4, 5, 6, 7, 8] } }