timeclient.java
来自「< J2EE应用开发详解>>一书全部的源代码. 本书基于J」· Java 代码 · 共 31 行
JAVA
31 行
/*
* Created on 2004-6-20
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package com.j2ee14.ch20;
import localhost.test_axis.services.TimeService.*;
/**
* @author w
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class TimeClient {
public static void main(String[] args)
{
try
{
TimeServiceServiceLocator locator=new TimeServiceServiceLocator();
localhost.test_axis.services.TimeService.TimeService timeService=locator.getTimeService();
System.out.println("The Time is:"+timeService.getTime());
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?