Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA tballer Ph... 1 - Chapter 6 lab... x (+) 51.7% CPS 2231 Chapter 6- Lab 2 Spring 2019 Lab Assignment #6.2 Assigned date: 1/29/2019
JAVA
tballer Ph... 1 - Chapter 6 lab... x (+) 51.7% CPS 2231 Chapter 6- Lab 2 Spring 2019 Lab Assignment #6.2 Assigned date: 1/29/2019 Due Date: 1/31/2019 Point value: 10 points Assignment: Use the class, WhatPrints, to view what prints for each of the method calls below: doSomething/5 doSomething(6.7) doSomething(3,6.7) Write the answers in a doc file Explain which method runs for each method call and why. Submit the doc file public class WhatPrints ( public static void main(String[1 args) ( doSonething(5); doSonething(6.7) doSonething("Mary"): doSonething(3, 6.7); public static void doSonething(String s) System.out.printin("Apple") public static void doSomething(int n) System.out-println("Banana) public static void doSomething(double d) System.out.printin("Pear"); public static void doSonething(int n, double d) Systes.out printin("Strauberry) public static void main(String[] args) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started