This class contains our main method.
这个类包含我们的main方法。
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?
运行主方法时发生什么情况?
Let's create an empty main method for now.
现在让我们创建一个空的main方法。
You can test this class by adding a main method.
可以添加一个main方法测试这个类。
Be sure to add the listener in the main method.
确保在main方法中添加一个侦听器。
We just need to implement our executable's main method.
我们只需实现可执行文件的main方法。
Let's start with the class’s datamembers and main method.
首先来看这个类的数据成员和main方法。
Also, make sure you check the box to create a main method.
另外,确保勾选了关于创建主方法的复选框。
Take, for example, the main method in the class in Listing 8.
我们以清单8中那个类的main方法为例。
You need to change the WSDL URL in main method of this class.
您需要在此类的main方法中更改WSDLURL。
Testing the main method does not work with all applications.
测试main方法并不作用于所有的应用程序。
Listing 4 gives a sample run of the main method from Listing 1.
清单4给出了清单1中的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。
This has to be configured in the main method of our application.
这只能在应用程序的main方法中配置。
In the main method, we have created an instance of this class.
我们在main方法中创建了这个类的实例。
The main method of the test client application is shown below.
测试客户机应用程序的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方法中,因此它将默认执行。
Notice the cast needed in the third line of the body of the main method.
请注意main方法主体部分的第三行中需要进行的数据类型转换。
Make sure that the option to create a stub for a main method is checked.
确认选中了为main方法创建存根的选项。
First, there is no main method or class definition, just some simple code.
首先,没有main方法或者类定义,只有一些简单的代码。
Now, when the main method runs, the output looks like that in Listing 6.
现在,main方法运行时,输出如清单6所示。
If all goes well, it is time to instantiate the class and run its main method.
如果一切正常,那么就可以实例化这个类并运行其main方法了。
You'll find the first problem if you try to run this in a standard main method.
如果您试图在一个标准的main方法中运行这段代码,就会发现第一个问题。
The fully package qualified name of the class that contains your main method.
包含main方法的类的完全限定包名。
应用推荐