1234567891011121314151617181920212223242526272829303132333435363738 |
- import java.io.*;
- import java.util.*;
- import java.text.*;
- /**
- * Write a description of class UseTextIO here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class UseTextIO
- {
- // instance variables - replace the example below with your own
- TextIO textio = new TextIO();
- private int x = 7;
- private String words = "These are words";
-
- /**
- * Constructor for objects of class UseTextIO
- */
- public UseTextIO()
- {
-
- }
-
- /**
- *
- */
- public void usePrompt()
- {
- textio.prompt(textio.writeDouble(5, 4, 3)) ;
- }
-
- public void open()
- {
- textio.prompt(textio.writeInt(4, 3));
- }
- }
|