data object stock 证券信息
You traverse object graph and create the array of Stock objects.
您遍历对象图并创建Stock对象数组。
You simply build a Quote from each Stock object, and then add it to a Portfolio object that is returned to the servlet in Listing 3.
只需构建来自每个Stock对象的Quote,然后将其添加到清单3中返回到servlet的Portfolio对象即可。
When the user clicks the button, you read the stock data from various widgets (EditText widgets to be exact) and populate a new stock object.
当用户点击按钮时,您可以从各个小部件(确切地说是EditText小部件)读取股票数据并填入一个新的Stock对象。
应用推荐