We created a person whose name is "quit" - probably not what the programmer had in mind. Fix this bug out2srcC Main3O Person4 >. Main.iml> ulı External LibrariesPO Scratches and...


We created a person whose name is "quit" - probably not what the programmer had in mind. Fix this bug


IJ<br>File Edit View Navigate Code Analyze Refactor Build Run Iools VCS Window Help<br>Main - Main.java<br>Main<br>src G Main m main<br>Main<br>O Project -<br>G Main.java<br>Person.java X<br>v Main CAUsers\Tsuiy\ldeaProjects\Main<br>1<br>Gimport java.util.ArrayList;<br>A 1<br>.idea<br>Aimport java.util.Scanner;<br>public class Main {<br>public static void main(String[] args){<br>Scanner keyboardScanner = new Scanner (System.in);<br>> out<br>2<br>src<br>C Main<br>3<br>O Person<br>4 ><br>. Main.iml<br>> ulı External Libraries<br>PO Scratches and Consoles<br>6<br>ArrayList<Person> people = new ArrayList<>();<br>7<br>8.<br>System.out.println(

Extracted text: IJ File Edit View Navigate Code Analyze Refactor Build Run Iools VCS Window Help Main - Main.java Main src G Main m main Main O Project - G Main.java Person.java X v Main CAUsers\Tsuiy\ldeaProjects\Main 1 Gimport java.util.ArrayList; A 1 .idea Aimport java.util.Scanner; public class Main { public static void main(String[] args){ Scanner keyboardScanner = new Scanner (System.in); > out 2 src C Main 3 O Person 4 > . Main.iml > ulı External Libraries PO Scratches and Consoles 6 ArrayList people = new ArrayList<>(); 7 8. System.out.println("hello world"); 9. String input II II . %3D 10 while (!input.trim().toLowerCase ().equals("quit")) { 11 System.out.println("enter your name: "); 12 input = keyboardScanner.nextLine(); 13 Person p = new Person (input.trim()); 14 people.add(p); 15 p.print(); 16 17 System.out.println("These are the people"); - "); System.out.println(": for (Person p:people){ 18 19 20 p.print(); 22 } 23 System.out.println("Bye.. ."); 24 } 25 } 26 avorites . Structure
IJ<br>File Edit View Navigate Code Analyze Refactor Build Run Iools VCS Window Help<br>Main - Person.java<br>Main<br>src G Main<br>Main<br>O Project -<br>G Main.java X<br>© Person.java<br>v Main CAUsers\Tsuiy\ldeaProjects\Main<br>1<br>public class Person {<br>A1<br>.idea<br>> out<br>2<br>private String name;<br>src<br>C Main<br>O Person<br>4<br>Person (String aName){<br>Main.iml<br>> ulı External Libraries<br>name = aName;<br>PO Scratches and Consoles<br>}<br>8.<br>public void print(){<br>9.<br>System.out.println(

Extracted text: IJ File Edit View Navigate Code Analyze Refactor Build Run Iools VCS Window Help Main - Person.java Main src G Main Main O Project - G Main.java X © Person.java v Main CAUsers\Tsuiy\ldeaProjects\Main 1 public class Person { A1 .idea > out 2 private String name; src C Main O Person 4 Person (String aName){ Main.iml > ulı External Libraries name = aName; PO Scratches and Consoles } 8. public void print(){ 9. System.out.println("Person: + name); 10 11 12 E TODO e Problems 華 Debug 2 Terminal KBuild 3 Event Log O All files are up-to-date (5 minutes ago) 12:1 CRLF UTF-8 4 spaces * Favorites . Structure
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here