列模式:
shift+alt+insert进入列选择模式,可选择一列或者多列
shift+alt+insert退出列选择模式
大小写转换:
Ctrl + Shift + U
循环:
iter 增强版for循环
Listlist = new ArrayList<>();for (int i : array) { }
itar 生成array for代码块
int array [] = new int [10];for (int i = 0; i < array.length; i++) { }
itco 生成Collection迭代
Listlist = new ArrayList<>();for (Iterator iterator = list.iterator(); iterator.hasNext(); ) { String next = iterator.next(); }
iten 生成enumeration遍历
itit 生成iterator 迭代
itli 生成List的遍历
ittok 生成String token遍历
itve 生成Vector数组迭代
itaws 生成Axis2 web service调用:
try { MyServiceStub stub = new MyServiceStub(); stub.sayHelloWorldFrom(); } catch (Exception ex) { ex.printStackTrace(); }
itws 生成 Axis web service调用:
try { MyServiceLocator locator = new MyServiceLocator(); Activator service = locator.get(); // If authorization is required //((MyService_Soap_BindingStub)service).setUsername("user3"); //((MyService_Soap_BindingStub)service).setPassword("pass3"); // invoke business method service.businessMethod(); } catch (javax.xml.rpc.ServiceException ex) { ex.printStackTrace(); } catch (java.rmi.RemoteException ex) { ex.printStackTrace(); }
posted on 2018-12-20 10:49 阅读( ...) 评论( ...)