main方法非常简单。
Consider the main method in Listing 3.
检查清单3中的main方法。
Listing 10. New code for the main method.
清单10.main方法的新代码。
What happens when you run the main method?
运行主方法时发生什么情况?
Be sure to add the listener in the main method.
确保在main方法中添加一个侦听器。
Listing 4. shows modifications to the main method.
清单4 .显示了对main方法的修改。
Take, for example, the main method in the class in Listing 8.
我们以清单8中那个类的main方法为例。
This has to be configured in the main method of our application.
这只能在应用程序的main方法中配置。
Testing the main method does not work with all applications.
测试main方法并不作用于所有的应用程序。
And, of course, add a call to the routine in the main method.
当然,还要在main方法中添加对例程的调用。
Add a line to the main method creating a Vector called names.
在main方法中加入一行代码,创建名为names的Vector。
The main method of the test client application is shown below.
测试客户机应用程序的main方法如下所示。
In the main method, we have created an instance of this class.
我们在main方法中创建了这个类的实例。
Listing 4 gives a sample run of the main method from Listing 1.
清单4给出了清单1中的main方法的运行示例。
The class definition and the main method are shown in Listing 14.
类定义和main方法如清单14所示。
The main method simply delegates each operation to worker methods.
main方法简单地将每个操作委托给辅助(worker)方法。
Since all the code is in the main method, it will execute by default.
由于所有代码都在main方法中,因此它将默认执行。
All the arguments are passed into the main method of the OGAdmin class.
所有参数都传入ogadmin类的main方法。
Notice the cast needed in the third line of the body of the main method.
请注意main方法主体部分的第三行中需要进行的数据类型转换。
Now, when the main method runs, the output looks like that in Listing 6.
现在,main方法运行时,输出如清单6所示。
The main method following the enumerated type definition demonstrates the usage.
位于枚举类型定义之后的main方法演示了这种用法。
The main method executes the JTest test case by calling junit.textui.TestRunner.run .
main方法调用junit . textui . TestRunner . run执行jtest测试用例。
The main method then only puts NanoDelay objects into the queue and takes them out again.
然后main方法只是将NanoDelay对象放到队列中并再次将它们取出来。
Now all you need to do is add code to the main method to delete any posts older than 30 days.
现在只需要把代码添加到main方法中来删除发布超过30天的所有post。
Listing 6 is the loadlib.h header file, which is used in the sources that call the main method.
清单6中是loadlib. h头文件,在调用main方法的源文件中使用了这个文件。
Now, when you run the main method, the Automobile object's toString output looks like Listing 8.
现在,运行main方法,Automobile对象的toString输出如清单8所示。
Next, we need to add some code to the main method to instantiate the class and run the SWT code.
接着,我们需要向main方法添加一些代码,以便实例化该类并且运行SWT代码。
It's the main thread that is implicitly created on process startup and executes the main method.
它是启动过程中隐式创建的主线程,执行main方法。
Let's now turn our attention to the main method. It creates an event-handler object and a parser object.
现在,让我们将注意力转向main方法。
The main method, shown in Listing 2, creates a new instance of the class and calls the signOn method.
如清单2所示,main方法创建这个类的一个新的实例,并调用signOn方法。
应用推荐