Class SlideX

java.lang.Object
  |
  +--SlideX

public class SlideX
extends java.lang.Object

SlideX contains little bits and pieces of code from the various slides in this lecture. I wrote it to check that the examples actually work, and so that you can experiment with changing it and checking what effect the modifications have.


Field Summary
(package private)  int x
          an x value for the getX method to return.
 
Constructor Summary
SlideX(int pos)
          Initialize the various bits that we need in the example methods.
 
Method Summary
 java.lang.String firstTwo()
          This method implements one of the slides.
 int getX()
          Get current X value.
static void main(java.lang.String[] args)
          A test harness for the code in this class.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

int x
an x value for the getX method to return.
Constructor Detail

SlideX

public SlideX(int pos)
Initialize the various bits that we need in the example methods.
Parameters:
pos - the x-position value that will be returned by getX().
Method Detail

firstTwo

public java.lang.String firstTwo()
This method implements one of the slides. No guarantee of fitness for use in any application is provided!
Returns:
the first two characters of the author's name

getX

public int getX()
Get current X value.
Returns:
the X coordinate

main

public static void main(java.lang.String[] args)
A test harness for the code in this class.
Parameters:
args - ignored


Generated by BlueJ