list = new ArrayList(); Scaer sc = new Scaer(System.in); while(sc.."/> list = new ArrayList(); Scaer sc = new Scaer(System.in); while(sc.."/> list = new ArrayList(); Scaer sc = new Scaer(System.in); while(sc."/>
خرید بک لینک

Vote count: -1

System.out.println("Enter the input array n");

ArrayList<Integer> list = new ArrayList<Integer>();

Scaer sc = new Scaer(System.in);
while(sc.hasNext()){

    list.add(sc.nextInt());
}


    int[] inputArray = new int[list.size()];

    for(int i = 0;i<inputArray.length;i++){
        inputArray[i] = list.get(i);
    }

I have tried using this code but I am getting a run time exception. i am unable to figure out mistake.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 27 ارديبهشت 1395 ساعت: 1:36

صفحه بندی