Class ACMESmartphone

java.lang.Object
javadoc_tags.ACMESmartphone

public class ACMESmartphone extends Object
Works like a regular smartphone but also tracks roadrunners.

The ACME Smartphone can perform similar functions as other smartphones, such as making phone calls, sending text messages, and browsing the web. However, the ACME Smartphone also enables GPS tracking on roadrunners. You can monitor the location of all roadrunners within a 20 mile radius using the RoadRunner Tracker app.

Note that the RoadRunner Tracker app requires you to be connected to wifi. It will not work on cellular data.

Since:
1.3
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The coordinates where the nearest roadrunner is located.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ACMESmartphone(double model, String license)
    Creates and initializes a new ACME_Smartphone with the appropriate model and license number.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the geocoordinates of roadrunners based on your city and state.
    void
    zapRoadRunner(int voltage)
    Zaps the roadrunner with the amount of volts you specify.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LongLat

      public String LongLat
      The coordinates where the nearest roadrunner is located.
  • Constructor Details

    • ACMESmartphone

      public ACMESmartphone(double model, String license)
      Creates and initializes a new ACME_Smartphone with the appropriate model and license number. Note that if your license is invalid or if the model is deprecated, the zapping controls on the phone will backfire.
      Parameters:
      model - The model of the ACME Smartphone you are initializing.
      license - The license associated with your ACME Smartphone.
  • Method Details

    • findRoadRunner

      public String findRoadRunner(String city, String state) throws IOException
      Gets the geocoordinates of roadrunners based on your city and state.
      Parameters:
      city - the city you want to browse for roadrunners
      state - the state you want to browse for roadrunners
      Returns:
      the coordinates of the roadrunner in your area
      Throws:
      IOException - if you put integers instead of strings
    • zapRoadRunner

      public void zapRoadRunner(int voltage) throws IOException
      Zaps the roadrunner with the amount of volts you specify.

      Do not exceed more than 30 volts or the zap function will backfire. For another way to kill a roadrunner, see the Dynamite.blowDynamiteLoudBang(int) method.

      Parameters:
      voltage - the number of volts you want to send into the roadrunner's body
      Throws:
      IOException - if you don't enter an integer data type amount for the voltage
      See Also: