2010-08-01から1ヶ月間の記事一覧
class Size { int w, h; Size(int size) { this(size,size); } Size(int _w, int _h) { w = _w; h = _h; } String toString() { return "w = "+w+"h = "+h; } } void setup() { Size s1 = new Size(10); Size s2 = new Size(10, 20); println("s1: " + s1 + …