idea中各种for,while循环的快捷键,简单粗暴使⽤Intellij idea 时,想要快捷⽣成for循环代码块
itar ⽣成array for代码块
[java]
1. for (int i = 0; i < array.length; i++) {
2. = array[i];
3.
4. }
itco ⽣成Collection迭代
[java]
1. for (Iterator<String> iterator = locationUrl.iterator(); iterator.hasNext(); ) {
2. String next = ();
idea的快捷键
3.
4. }
iten ⽣成enumeration遍历
[java]
1. while (enumeration.hasMoreElements()) {
2. Object nextElement = Element();
3.
4. }
iter ⽣成增强forxun
[java]
1. for (String s : locationUrl) {
2.
3. }
itit ⽣成iterator 迭代
itli ⽣成List的遍历ittok ⽣成String token遍历itve ⽣成Vector数组迭代
另外两个和循环⽆关,只是⽅便创建itaws ⽣成Axis2 web service调⽤
itws ⽣成 Axis web service调⽤1.
while (iterator.hasNext()) { 2.
Object next = (); 3.
4. } [java]
1.
for (int i = 0; i < locationUrl.size(); i++) { 2. String s = (i); 3.
4.
}
[java]
1.
for (int i = 0; i < vector.size(); i++) { 2.
Object elementAt = vector.elementAt(i); 3.
4. } [java]
1.
try { 2.
MyServiceStub stub = new MyServiceStub(); 3.
stub.sayHelloWorldFrom(); 4.
} catch (Exception ex) { 5.
ex.printStackTrace(); 6. }
1. try {
2. MyServiceLocator locator = new MyServiceLocator();
3. Activator service = ();
4. // If authorization is required
5. //((MyService_Soap_BindingStub)service).setUsername("user3");
6. //((MyService_Soap_BindingStub)service).setPassword("pass3");
7. // invoke business method
8. service.businessMethod();
9. } catch (l.rpc.ServiceException ex) {
10. ex.printStackTrace();
11. } catch (i.RemoteException ex) {
12. ex.printStackTrace();
13. }
具体如图:
转载⾃:blog.csdn/mingjie1212/article/details/51143444
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论