Answered step by step
Verified Expert Solution
Question
1 Approved Answer
what is the UML for this //Importing scanner class for taking user input import java.util.Scanner; //Class Helper public class Helper { /** * Using getInt
what is the UML for this
//Importing scanner class for taking user input import java.util.Scanner; //Class Helper public class Helper { /** * Using getInt method to get user to input Integer * @param msg Input coin value * @return n Integer Value */ public static int getInt(String msg) { Scanner kb = new Scanner(System.in); System.out.print(msg); int n = kb.nextInt(); return n; } /** * Using getString method to get user to input String * @param msg Input customer name * @return s String Value */ public static String getString(String msg) { Scanner kb = new Scanner(System.in); System.out.print(msg); String s = kb.nextLine(); return s; } /** * Method to print line * @param msg Input print line message and add new line after print text on console */ public static void println(String msg) { System.out.println(msg); } /** * Method to print * @param msg Input print message on console */ public static void print(String msg) { System.out.print(msg); } }
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