|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+import java.io.*;
|
|
|
2
|
+/**
|
|
|
3
|
+ * Write a description of class UseTextIO here.
|
|
|
4
|
+ *
|
|
|
5
|
+ * @author (your name)
|
|
|
6
|
+ * @version (a version number or a date)
|
|
|
7
|
+ */
|
|
|
8
|
+public class UseTextIO
|
|
|
9
|
+{
|
|
|
10
|
+ private TextIO textIO;
|
|
|
11
|
+
|
|
|
12
|
+ public UseTextIO() {
|
|
|
13
|
+ textIO = new TextIO();
|
|
|
14
|
+ }
|
|
|
15
|
+
|
|
|
16
|
+ public void getInput() throws IOException{
|
|
|
17
|
+ BufferedReader br = TextIO.open(System.in);
|
|
|
18
|
+ TextIO.prompt("Hello");
|
|
|
19
|
+ TextIO.prompt("\n");
|
|
|
20
|
+ TextIO.prompt("Type an int: ");
|
|
|
21
|
+ int ask = TextIO.readInt(br);
|
|
|
22
|
+ TextIO.prompt("Your int is: " + ask + "\n");
|
|
|
23
|
+ }
|
|
|
24
|
+}
|