Topic: 各们高手大家好!请问一下怎样在eclipse中给以下的两个参数加值? |
Print this page |
1.各们高手大家好!请问一下怎样在eclipse中给以下的两个参数加值? | Copy to clipboard |
Posted by: IT_liuxue2005 Posted on: 2005-09-21 18:44 import java.awt.*; public class text { public static void main(String[] args) { int w = new Integer(args[0]).intValue(); int h = Integer.parseInt(args[1]); for(int i=0;i<h;i++) { StringBuffer sb = new StringBuffer(); for(int j=0;j<w;j++) { sb.append('*'); } System.out.println(sb.toString()); } } }怎么在那里面给定 w,h 这两个参数的值?请指教: |
2.Re:各们高手大家好!请问一下怎样在eclipse中给以下的两个参数加值? [Re: IT_liuxue2005] | Copy to clipboard |
Posted by: zcjl Posted on: 2005-09-21 20:24 菜单:“运行(R)”->“运行(N)” 然后在弹出的窗口双击左边树里面的"Java应用程序",就会添加当前编辑的Class,然后在右边的参数设置区点击"自变量",在"程序自变量(A)"里填写 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |