I am only a learner coder. I am having trouble with this code here. I am hoping someone can give me a few hinters with what i need to do. I keep getting the error
import java.lang.Object.*; > import java.awt.*; > import javax.swing.*; > > public class JDisplay > { > private Maximum in; > private JWindow win; > private int maxValue; > private JTextArea text; > private int[] values; > private int counter; > > public JDisplay() > { > in = new Maximum(); > maxValue = in.getMax(); > win = new JWindow(0, 0, 300, 300); > text = new JTextArea(0,0,300,300); >>>>>>>>>>>>>>>>>>>>>>>> Error here saying cant find Symbol - constructor
JWindow(int,int,int,int) > text.setBackground(Color.yellow); > text.setFontSize(20); > values = in.getValues(); > for (int i = 0; i < maxValue; i++){ > text.appendln("Frog"); > > } > for (int j = 0; j < in.getCounter();j++){ > text.append(values[j]+ " "); > } > text.place(win); > win.repaint(); > } > > > } > > Maximum Class > import java.util.*; > > public class Maximum{ > private int max; > private int[] values; > private int counter; > > public Maximum(){ > Scanner input = new Scanner(System.in); > values = new int[30]; > int num = 0; > int i = 0; > System.out.println("Enter an integer"); > while(input.hasNext()){ > if (input.hasNextInt()){ > num = input.nextInt(); > values[counter++] = num; > if (num > max) max = num; > } > else{ > if (input.findInLine("exit") != null) break; > } > } > System.out.println("The max is " + max); > } > > public int getMax(){ > return max; > } > public int[] getValues(){ > return values; > } > public int getCounter(){ > return counter; > } > }