Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * class berfungsi agar user dapat menginput pertanyaan yang generic
- * @author Yusuf Anfasya
- * @version 0.1 inputreader
- */
- import java.util.Scanner;
- import java.util.HashSet;
- public class InputReader
- {
- // instance variables - replace the example below with your own
- private Scanner scanner;
- /**
- * Constructor for objects of class InputReader
- */
- public InputReader()
- {
- scanner = new Scanner(System.in);
- }
- /**
- * An example of a method - replace this comment with your own
- *
- * @param y a sample parameter for a method
- * @return the sum of x and y
- */
- public String getInput()
- {
- System.out.print(">>_<<");
- String Input = scanner.nextLine();
- return Input;
- }
- }
Add Comment
Please, Sign In to add comment