IntelliJIDEA 使⽤快捷键⽣成各种for 循环。增强for 循环等等itar ⽣成array for 代码块
itco ⽣成Collection 迭代
iten ⽣成enumeration 遍历
iter ⽣成增强forxun
itit ⽣成iterator 迭代
itli ⽣成List 的遍历
ittok ⽣成String token 遍历[java]
01. for (int i = 0; i < array.length; i++) { 02. = array[i]; 03. 04. } 5.
[java]
01. for (Iterator<String> iterator = locationUrl.iterator(); iterator.hasNext(); ) { 02. String next = (); 03. 04. }
[java]intellijidea
01. while (enumeration.hasMoreElements()) { 02. Object nextElement = Element(); 03. 04. }
[java]
01. for (String s : locationUrl) { 02. 03. }
[java]
01. while (iterator.hasNext()) { 02. Object next = (); 03. 04. } [java]
01. for (int i = 0; i < locationUrl.size(); i++) { 02. String s = (i); 03. 04. }
[java]
01. for (StringTokenizer stringTokenizer = new StringTokenizer(TVSOU_URL); stringTokenizer.hasMoreTokens(); ) { 02. String s = Token();
itve ⽣成Vector 数组迭代
另外两个和循环⽆关,只是⽅便创建itaws ⽣成Axis2 web service 调⽤
itws ⽣成 Axis web service 调⽤03. 04. } [java]
01. for (int i = 0; i < vector.size(); i++) { 02. Object elementAt = vector.elementAt(i); 03. 04. } [java]
01. try { 02. MyServiceStub stub = new MyServiceStub(); 03. stub.sayHelloWorldFrom(); 04. } catch (Exception ex) { 05. ex.printStackTrace(); 06. } [java]
01. try { 02. MyServiceLocator locator = new MyServiceLocator(); 03. Activator service = (); 04. // If authorization is required 05. //((MyService_Soap_BindingStub)service).setUsername("user3"); 06. //((MyService_Soap_BindingStub)service).setPassword("pass3"); 07. // invoke business method 08. service.businessMethod(); 09. } catch (l.rpc.ServiceException ex) { 10. ex.printStackTrace(); 11. } catch (i.RemoteException ex) { 12. ex.printStackTrace(); 13. }
14.
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论