// Aaron Tan
// 
// To test out Ball class (first version)

import java.util.*;

class TestBall {

   public static void main(String[] args) {

      Scanner scanner = new Scanner(System.in);
      String inputTexture, inputColour;
      double inputRadius;

      // Read inputs from user
      System.out.print("Enter texture: ");
      inputTexture = scanner.next();
      System.out.print("Enter colour: ");
      inputColour = scanner.next();
      System.out.print("Enter radius: ");
      inputRadius = scanner.nextDouble();
      
      // Create a default Ball object
      Ball myBall = new Ball();

      // Set the texture, colour and radius of this Ball object
      // Note that we may call a static method on an instance: 
      //    myBall.setTexture(inputTexture);
      // but this will be as good as the statement below 
      Ball.setTexture(inputTexture);
      myBall.setColour(inputColour);
      myBall.setRadius(inputRadius);

      // Display the contents of the Ball object
      // Note also that we may call:
      //    myBall.getTexture();
      // but again, it is as good as the statement below
      System.out.println("Texture is " + Ball.getTexture());
      System.out.println("Colour is " + myBall.getColour());
      System.out.println("Radius is " + myBall.getRadius());

      // What output do you get for the following statement?
      // (We will learn how to deal with it next time.)
      System.out.println("Ball's contents are " + myBall);
      
   }

}

