what is the UML for this //Importing scanner class for taking user input import java.util.Scanner; //Class Helper
Fantastic news! We've Found the answer you've been seeking!
Question:
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); } }
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date: