Question: X Failed to compile DollViewer. java:5: error: illegal start of expression public Doll (String name) { DollViewer. java:5: error: invalid method declaration; return type required
X Failed to compile DollViewer. java:5: error: illegal start of expression public Doll (String name) { DollViewer. java:5: error: invalid method declaration; return type required public Doll (String name) { DollViewer. java:9: error: invalid method declaration; return type required public Doll (String name, Doll inside) { DollViewer. java:23: error: class, interface, or enum expected public static void main (String args) DollViewer. java:26: error: class, interface, or enum expected Doll dolls2 = new Doll ("Anna", new Doll ("Dina") ) ; DollViewer. java:27: error: class, interface, or enum expected Doll dolls3 = new Doll ("Nika" ) ; DollViewer. java:28: error: class, interface, or enum expected Doll dolls4 = new Doll ( "Martina", new Doll ("Olga", new Doll ("Sofia", new Doll ("Elvira") ) ) ) ; DollViewer. java:29: error: class, interface, or enum expected System. out. printIn (show (dolls1) ) ; DollViewer . java:30: error: class, interface, or enum expected System. out . printIn (show (dolls2) ) ; DollViewer. java:31: error: class, interface, or enum expected System. out. printIn (show (dolls3) ) ; DollViewer. java: 32: error: class, interface, or enum expected System. out. printIn (show (dolls4) ) ; DollViewer . java:33: error: class, interface, or enum expected 12 errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
