Question: Using TDD, build a console system that allows the user to input their name, their height and their weight - and then print it all
Using TDD, build a console system that allows the user to input their name, their height and their weight - and then print it all out (points for how pretty it looks).
For your convenience, I am including a simple ScannerWrapper - it may not be the same when you're done.
Java file:
package test;
import java.util.Scanner;
public class ScannerWrapper {
Scanner scanner;
public ScannerWrapper() {
scanner = new Scanner(System.in);
}
public String nextLine() {
return scanner.nextLine();
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
