Getting error on printing array

后端 未结 4 563
孤独总比滥情好
孤独总比滥情好 2021-01-28 12:22

I got this code:

import java.util.*;
import java.io.*;

public class Oblig3A{
    public static void main(String[]args){
    OrdAnalyse O = new OrdAnalyse();
            


        
4条回答
  •  别那么骄傲
    2021-01-28 13:23

    You have to print the array element by element.

    ie.

        for(int i = 0; i < ordArray.length; i++)
            System.out.println(ordArray[i]);
    

提交回复
热议问题