FileDocCategorySizeDatePackage
ToString.javaAPI DocExample401Sat Nov 25 12:55:48 GMT 2000None

ToString

public class ToString extends Object
ToString -- demo program to show a toString method.

Fields Summary
int
value
Constructors Summary
ToString()

		value = 0;
	
ToString(int it)

		value = it;
	
Methods Summary
public static voidmain(java.lang.String[] argv)

		ToString s = new ToString(123);

		System.out.println("Hello, World of Java");
		System.out.println("My object is" + s);
	
public java.lang.StringtoString()

		return "-->" + value + "<--";