主题:[讨论]错误为什么 答案都有错!
public class practiceForArray{
public static void main(String[] args){
int lowPos;
int lowest = INTEGER.MAX_VALUE; //set to the highest possible value so everything is smaller
int array[] = {1,2,3,4,5,6,7,7,8};
//have values entered into the array
//go through the array
for(int i=0; i<array.length; i++)
{
if(array[i] < lowest)
{
lowest = array[i];
lowPos = i;
}
}
}
}
为什么说我File: C:\Documents and Settings\yitaolee\practiceForArray.java [line: 6]
Error: INTEGER cannot be resolved to a variable