Question: CPS 1231 Chapter 6-lab 5 Fall 2018 Instructions: On a separate Word document, do the following questions and submit as PDF when done. Work in
CPS 1231 Chapter 6-lab 5 Fall 2018 Instructions: On a separate Word document, do the following questions and submit as PDF when done. Work in pairs. Given the following methods, write down the printed output of the method calls public static void doSomething(String x) System.out.printin("A): public static void doSomething(int x) System.out.printn("B) public static void doSomething(double x) System.out.printin("C): public static void doSomething(String x, int y) System.out.printin("D) public static void doSomething(int x, String y) System.out.printin(E) public static void doSomething(double x, int y) System.out.printin("F") 2. doSomething (5.2, 9) 3. doSomething(3, "Hello"); S. doSomething ("Alfred")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
