ParameterDemo
Class StringHolder
java.lang.Object
|
+--ParameterDemo.StringHolder
- public class StringHolder
- extends java.lang.Object
StringHolder.java
Created: Tue Jan 30 14:12:14 2001
- Author:
- Stuart C. Shapiro
Constructor Summary |
StringHolder(java.lang.String stringarg)
Makes a new StringHolder holding the given string. |
Method Summary |
static java.lang.String |
getClassString()
Returns the common class string. |
java.lang.String |
getHeldString()
Returns the string being held. |
static void |
main(java.lang.String[] args)
Tests the methods of StringHolder. |
static void |
setClassString(java.lang.String newClassString)
Changes the common class string. |
void |
setHeldString(java.lang.String newstring)
Changes the string being held to the given value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringHolder
public StringHolder(java.lang.String stringarg)
- Makes a new StringHolder holding the given string.
- Parameters:
stringarg
- The string to be held.
getClassString
public static java.lang.String getClassString()
- Returns the common class string.
setClassString
public static void setClassString(java.lang.String newClassString)
- Changes the common class string.
getHeldString
public java.lang.String getHeldString()
- Returns the string being held.
setHeldString
public void setHeldString(java.lang.String newstring)
- Changes the string being held to the given value.
- Parameters:
newstring
- The new string to be held.
main
public static void main(java.lang.String[] args)
- Tests the methods of StringHolder.