由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - about loop control
相关主题
help on this scope questionoverride/overload/overwrite in Java
It's a Java BugHow big is the penalty for compile with debugging mode on?
eclipse how to remember a code location and jump back?也问一个Eclipse的问题
问一个java的面试题 (转载)QT is LGPL now
java compilation question刚刚开始学习java,麻烦帮我看一下我哪里错了行吗?谢谢
Help with Tomcat for Eclipse v1.03其实JSP也不错
ant javac error in eclipse 3.0?问一个 java generic问题
Problem on ANT,JAVA,JSP,JSPPrecompilerJava 求解2
相关话题的讨论汇总
话题: method话题: class话题: pos话题: loop话题: control
进入Java版参与讨论
1 (共1页)
z********i
发帖数: 60
1
I have a question about my loop control as below:
class A:
B pos[][];
...
for(y=0;y<24;y++)
pos[x+1][y+1].method(...);
Class B:
public B(int x, int y) {
super(0);
this.x=x;
this.y=y;
this.name = "#";
}
public void method(...) {
....
if((x>0)&&(x<25)&&(y>0)&&(y<25)) {
....
}
it can be compiled and run, but for method in B, it only counts y from 1 to
23, I do not k
1 (共1页)
进入Java版参与讨论
相关主题
Java 求解2java compilation question
Help on getting large data from OracleHelp with Tomcat for Eclipse v1.03
Re: Help on getting large data from Oracant javac error in eclipse 3.0?
improve speedProblem on ANT,JAVA,JSP,JSPPrecompiler
help on this scope questionoverride/overload/overwrite in Java
It's a Java BugHow big is the penalty for compile with debugging mode on?
eclipse how to remember a code location and jump back?也问一个Eclipse的问题
问一个java的面试题 (转载)QT is LGPL now
相关话题的讨论汇总
话题: method话题: class话题: pos话题: loop话题: control