Define a method printfeetinchshort with int parameters


Define a method printFeetInchShort, with int parameters numFeet and numInches, that prints using ' and " shorthand. Ex: printFeetInchShort(5, 8) prints:5' 8"

Hint: Use " to print a double quote.

1
2
3
4
5
6
7
8
9
10
11
12
13
14


import java.util.Scanner;
public class HeightPrinter {
int numFeet = 0;
int numInches = 0;
System.out.println("5" + "8");
public static void main (String [] args) {
printFeetInchShort(5, 8);
System.out.println("");
return;

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Define a method printfeetinchshort with int parameters
Reference No:- TGS02398139

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)