• Testing the main method does not work with all applications.

    测试main方法并不作用于所有的应用程序。

    youdao

  • Add a line to the main method creating a Vector called names.

    在main方法中加入一行代码,创建名为names的Vector。

    youdao

  • Now, when the main method runs, the output looks like that in Listing 6.

    现在,main方法运行时,输出如清单6所示。

    youdao

  • If all goes well, it is time to instantiate the class and run its main method.

    如果一切正常,那么就可以实例化这个类并运行其main方法了。

    youdao

  • The main method following the enumerated type definition demonstrates the usage.

    位于枚举类型定义之后的main方法演示了这种用法。

    youdao

  • The main method then only puts NanoDelay objects into the queue and takes them out again.

    然后main方法只是将NanoDelay对象放到队列中并再次将它们取出来。

    youdao

  • You can have separate launch configurations for any class with a main method in the project.

    项目中有main方法的类都可以有单独的启动配置。

    youdao

  • Now all you need to do is add code to the main method to delete any posts older than 30 days.

    现在只需要把代码添加到main方法中来删除发布超过30天的所有post。

    youdao

  • Next, we need to add some code to the main method to instantiate the class and run the SWT code.

    接着,我们需要向main方法添加一些代码,以便实例化该类并且运行SWT代码。

    youdao

  • It is similar to having a class with a main method used for testing other classes in the package.

    这类似于将一个具有主方法的类用于测试包中的其他类。

    youdao

  • It's the main thread that is implicitly created on process startup and executes the main method.

    它是启动过程中隐式创建的主线程,执行main方法。

    youdao

  • In those days, a skillfully placed main method was considered both agile and adequate for testing.

    在那时,有技巧地放置main方法被视为灵活且适当的测试方法。

    youdao

  • The OnInit function is called when your application starts — effectively, it's your main method.

    应用程序开始时,调用OnInit函数——实际上是main方法。

    youdao

  • Now, when you run the main method, the Automobile object's toString output looks like Listing 8.

    现在,运行main方法,Automobile对象的toString输出如清单8所示。

    youdao

  • Some applications that do have a main method may not expect that method to be called more than once.

    一些确实具有main方法的应用程序可能也不希望这个方法被不止一次的调用。

    youdao

  • The main method, shown in Listing 2, creates a new instance of the class and calls the signOn method.

    如清单2所示,main方法创建这个类的一个新的实例,并调用signOn方法。

    youdao

  • We need a main method to apply advice to our Example class, and print out some helpful status messages.

    我们需要一个main方法将advice应用到我们的Example类,并打印出一些有帮助的状态消息。

    youdao

  • Here, we have a class called Hello, where the main method merely creates an ApplicationWindow, then opens it.

    这里我们创建了一个名为Hello的类,其中main方法仅仅创建了一个ApplicationWindow,然后打开它。

    youdao

  • The static initializer runs first, as the class is loaded, followed by the main method (which is also static).

    加载类之后,静态初始化器首先运行,紧接着运行的是main方法(也是静态的)。

    youdao

  • This is an OSGi-specific piece of code which is invoked when the bundle is started, like a per-bundle main method.

    下面是OSGi特定的代码片段,在bundle启动时被调用,有点像是bundle的main方法。

    youdao

  • Arguments passed on the One-JAR command line are passed through to the application main method without modification.

    在One - JAR命令行上传递的参数,被不加修改地传递到应用程序的主方法。

    youdao

  • To enable sorting of the columns, you must add the following code to the main method before calling the Shell.open method.

    要对列启用排序功能,您必须在调用Shell . open方法前向main方法中添加以下代码。

    youdao

  • The main method in this class is the process method (Figure 3) that opens the original BAR file and loops through its content.

    类中的主要方法就是打开原始的BAR文件并循环执行该文件内容的处理方法(图3)。

    youdao

  • The main method simply enables you to invoke the Eight Ball from a command line; you will not use it from your web services clients.

    main方法只是使您能够从命令行调用EightBall;您将不在自己的Web服务客户机上使用它。

    youdao

  • The main method then proceeds to delegate the parsing of the argument to a CmdLineParser object, which then returns an Options object.

    main方法然后会将参数解析委托给CmdLineParser对象,后者将返回Options对象。

    youdao

  • Not surprisingly, the run method contains the code I wrote to create new instances of those objects and the main method calls the run method.

    不用惊讶,run方法包含我编写的、用来创建这些对象的新实例的代码,而main方法则调用run方法。

    youdao

  • These two functions are both declared private static, which enables you to call them from within your main method but not from other classes.

    这两个函数都声明为privatestatic,因此可以从main方法中调用它们,但是不能从其他类调用。

    youdao

  • That lock method would be called at the end of the main method before any start lifecycle were invoked and would very effectively prevent misuse.

    应该在main方法结束的地方、调用任何启动生命周期方法之前调用lock方法锁定服务定位器,这样可以有效地防止误用。

    youdao

  • You can use the newly created look and feel in any Swing application by invoking the following line in the main method before the first widget is created.

    通过在main方法中第一个窗口小部件创建之前调用下面一行代码,您便可以在任何Swing应用程序中使用新创建的lookandfeel。

    youdao

  • To avoid lines of arbitrary argument parsing code, this main method USES the Apache Commons CLI project to parse the arguments sent to it from the command line.

    为了避免随意的实参解析代码,main方法使用了ApacheCommonsCLI项目来解析从命令行发送给它的这些实参。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定