This page takes two Numbers input by the user, as shown in Figure 3.
该页面接受来自用户的两个数值,如图3所示。
You could, for example, change this program so that it added two real Numbers simply by changing the types of the variables and the names of the input methods, as shown in Figure 2-3.
比如你简单修改变量的类型和方法的名字,这样程序就可以做实数的加法了,如图2 - 3。
To make this code executable, I must add the gram and lb methods to numbers by opening the Numeric class, as shown in Listing 2
要使此代码可执行,我必须通过打开 Numeric 类以便将 gram 和 lb 方法添加到数字中,如清单 2 所示
应用推荐