Itar generating an array for code block
for (int i = 0; i < array.length; i++) { = array[i]; }
Itco Generating Collection iterations
for (iterator<string> Iterator = locationurl.iterator (); Iterator.hasnext ();) { = iterator.next (); }
Iten Generating Enumeration traversal
while (Enumeration.hasmoreelements ()) { = enumeration.nextelement (); }
ITER Build Enhancement Forxun
for (String s:locationurl) { }
Itit Generating iterator iterations
while (Iterator.hasnext ()) { = iterator.next (); }
Itli Generating a list traversal
for (int i = 0; i < locationurl.size (); i++) { = locationurl.get (i); }
Ittok Generating String token traversal
for New StringTokenizer (Tvsou_url); Stringtokenizer.hasmoretokens ();) { = stringtokenizer.nexttoken (); }
Itve generating vector array iterations
for (int i = 0; i < vector.size (); i++) { = vector.elementat (i); }
The other two have nothing to do with loops, just easy to create itaws generate AXIS2 Web service calls
Try { new myservicestub (); Stub.sayhelloworldfrom (); Catch (Exception ex) { ex.printstacktrace (); }
Itws Generating an Axis Web service call
Try{Myservicelocator Locator=NewMyservicelocator (); Activator Service=Locator.get (); //If Authorization is required//( (myservice_soap_bindingstub) service). Setusername ("User3"); //( (myservice_soap_bindingstub) service). SetPassword ("PASS3"); //Invoke Business MethodService.businessmethod (); } Catch(Javax.xml.rpc.ServiceException ex) {ex.printstacktrace (); } Catch(Java.rmi.RemoteException ex) {ex.printstacktrace (); }
Specific
Original address: http://blog.csdn.net/hdchenyue/article/details/52300473
Java-idea-Generating A For loop