int[] vscore= new int[fens.length];
for(int i=0, j=0;i<fens.length;i++){
if(fens[i]>=0 && fens[i]<=100){
vscore[j]=fens[i];
j++;
}
}
Arrays.sort(vscore);
int[] fscore= new int[vscore.length];
for(int i=0;i<vscore.length;i++){
fscore[vscore.length-1-i]=vscore[i];
}
return fscore;
for(int i=0, j=0;i<fens.length;i++){
if(fens[i]>=0 && fens[i]<=100){
vscore[j]=fens[i];
j++;
}
}
Arrays.sort(vscore);
int[] fscore= new int[vscore.length];
for(int i=0;i<vscore.length;i++){
fscore[vscore.length-1-i]=vscore[i];
}
return fscore;
public void calcAvg(int sco1, int sco2)
{
double avg = (double)(sco1+sco2)/2;
System.out.println(avg);
}
{
double avg = (double)(sco1+sco2)/2;
System.out.println(avg);
}
2015-05-22
int score = 53;
int count = 0;
System.out.println("加分前成绩:"+ score);
while(score <= 60)
{
score =+ 1;
count++;
}
System.out.println("加分后成绩:"+ score);
System.out.println("共加了:"+ count+"次!");
int count = 0;
System.out.println("加分前成绩:"+ score);
while(score <= 60)
{
score =+ 1;
count++;
}
System.out.println("加分后成绩:"+ score);
System.out.println("共加了:"+ count+"次!");
public class HelloWorld{
public static void main(String[] args) { String $1="我爱慕课网";
System.out.printIn($1);
String $2="www.imooc.com";
System.out.printIn($2);
}
}
请问这个代码哪里错了,为什么右侧显示编译有两处错误??
public static void main(String[] args) { String $1="我爱慕课网";
System.out.printIn($1);
String $2="www.imooc.com";
System.out.printIn($2);
}
}
请问这个代码哪里错了,为什么右侧显示编译有两处错误??
2015-05-22