PackageLianxi;ImportJava.util.Scanner; Public classXiangqin1 { Public Static voidMain (string[] args) {Scanner SR1=NewScanner (system.in); System.out.println ("Do you have a room?" "); String a=Sr1.nextline (); if(A.equals ("There") {System.out.println ("Let's get married!" "); return; } if(A.equals ("No") {System.out.println ("Then you have Money?" "); Scanner SR2=NewScanner (system.in); String b=Sr2.nextline (); if(B.equals ("There") {System.out.println ("Buy a house before you get married."); return; } if(B.equals ("No") {System.out.println ("Then you have the power?" "); Scanner SR3=NewScanner (system.in); String C=Sr3.nextline (); if(C.equals ("There") {System.out.println ("That is too money to buy a house, and then get married." "); return; } if(C.equals ("No") {System.out.println (Bye "); return; } Else{System.out.println ("Input Error! "); } } Else{System.out.println ("Input Error! "); } } Else{System.out.println ("Input Error! "); } }}
2.17 Bull, you're a slag, you can't do it. Did you give it back to him, Mr. Yoon?