0

I have no idea on how to fix this?I'm new to java and still learning

public static void main(String[] args)
        {
            BufferedReader read=new BufferedReader(new InputStreamReader(System.in));
            System.out.print("\nInsertion Sort");
            System.out.print("\n\nEnter number you want to Sort: ");
            int max = Integer.parseInt(read.readLine());

            int[] numarray = new int[max];

            for (int i = 0; i < max; i++)
            {
                System.out.print("\nEnter [" + (i + 1).toString() + "] element: ");//error in toString
                numarray[i] = Integer.parseInt(read.readLine());
            }
Nightsky
  • 1
  • 1

0 Answers0