示例: SquareIntegers. java ●这个例子中,程序员自定义了一个求平方 的方法 Square 感 Applet Viewer: Squarelnteger.=回x Applet The square of 1 is 1 The square of 2 is 4 The square of 3 is g The square of 4 is 16 The square of 5 is 25 The square of 6 is 36 The square of 7 is 49 The square of 8 is 64 The square of g is 81 The square of 10 is 100 Applet started 2021/2/24 北京理工大学计算机系2021/2/24 北京理工大学计算机系 8 示例:SquareIntegers.java ⚫这个例子中,程序员自定义了一个求平方 的方法Square