char @方法的int等价物是什么?例如
int[] numbers {23,321,12,124,1324,1234,54,655,765,6,54,7};
//if the digit 5 is found,
{
continue;
}
答案 0 :(得分:3)
尝试
for (int index = 0; index < numbers.length; index++)
{
if (String.valueOf(numbers[index]).contains("5"))
{
System.out.println("Yes");
continue;
}
}
答案 1 :(得分:1)
如果我理解你的问题:
for(int n : numbers){
if(String.valueOf(n).contains("5"))
continue;
}