Java-idea-Generating A For loop

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.