| 1234567891011121314151617181920212223242526272829303132 |
-
- /**
- * Write a description of class UsesTextIO here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class UsesTextIO
- {
- TextIO text = new TextIO();
-
- /**
- * Constructor for objects of class UsesTextIO
- */
- public UsesTextIO(TextIO t)
- {
- // initialise instance variables
- text = t;
- }
-
-
-
-
-
- public double readDouble(double d){
- return text.readDouble(text.open(("d")));
- }
-
-
-
- }
|