- /**
- * Demonstrates the
conversion of an object into a string
- *
- * @author TK Rogers
- * @version 11-03-09
- */
- public class
ObjectToString {
-
- public
static void main ( ) {
-
Fraction x = new Fraction (1, 3);
-
x.toString ( );
-
-
System.out.println (x.toString ( ) );
-
System.out.println (x);
- }
- }