Good afternoon. Maybe I'm writing in the wrong blog, if so please point me in the right direction. I have a question. Where in IntelliJ IDEA 12.04 to enter values for such tasks: “Enter two numbers m and n from the keyboard. Using the for loop, display a rectangle of size m by n made of eights.” I found only this on the Internet:
Scanner s = new Scanner(System.in); a = s.nextInt(); b = s.nextInt(); c = s.nextInt();
With this method, enter directly into the console or, if in the IDE, then into output. Output - as I understand it, where the solution is output (but this is crazy!). Second method: a = Integer.valueOf(JOptionPane.showInputDialog("Введите коэф. А")); b = Integer.valueOf(JOptionPane.showInputDialog("Введите коэф. B")); c = Integer.valueOf(JOptionPane.showInputDialog("Введите коэф. C"));
It’s better here, but not the same. A dialog box appears where we enter the values. But the plugin does not accept this form of entry. I ask knowledgeable people to tell me what is true in our case (JavaRushHomeWork). If it’s not difficult, post a couple of screenshots of the method in IntelliJ IDEA. PS If anyone knows, the same question is only in Eclipse.