FileDocCategorySizeDatePackage
ToStringWith.javaAPI DocExample422Tue Feb 20 13:07:40 GMT 2001None

ToStringWith

public class ToStringWith extends Object

Fields Summary
int
x
int
y
Constructors Summary
public ToStringWith(int anX, int aY)
Simple constructor

		x = anX; y = aY;
	
Methods Summary
public static voidmain(java.lang.String[] args)
Main just creates and prints an object

 
		System.out.println(new ToStringWith(42, 86));
	
public java.lang.StringtoString()
Override toString

		return "ToStringWith[" + x + "," + y + "]";