Question: 2. Given class DollApp.java below. Type and find the output. Write your answer the sheet provided. import java.util.Scanner; public class DollApp { public static void

 2. Given class DollApp.java below. Type and find the output. Write
your answer the sheet provided. import java.util.Scanner; public class DollApp { public

2. Given class DollApp.java below. Type and find the output. Write your answer the sheet provided. import java.util.Scanner; public class DollApp { public static void main() { Scanner in = new Scanner(System.in); System.out.println("Creating a doll.."); Doll doll1 = new Doll(); doll1.pressMe(); doll1.setName("Rita"); doll1.pressMe(); System.out.print("Would you like to set name?Y/N:> "); char choice = in.next().charAt(); in.nextLine(); if((choice == 'Y*)||(choice == 'y')) { System.out.print("Enter the name: "); String name=in.nextLine(); doll1.setName (name); } doll1.pressMe(); } Output: 24. lese? 1 see t tan t] dt Vs 13. 25. sec x(sec x + tanx) dx 29. 10. (a) | \x?dx {-] 18. f+x)(2 x)dx n' S[E-v20] a sinx dx cos2x 20. 1 - 213 dt 13 32. secx + cos x 2 cos x dx 22

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!