char@ 方法的 int 等价物是什么?例如
int[] numbers {23,321,12,124,1324,1234,54,655,765,6,54,7};
//if the digit 5 is found,
{
continue;
}
最佳答案
尝试
for (int index = 0; index < numbers.length; index++)
{
if (String.valueOf(numbers[index]).contains("5"))
{
System.out.println("Yes");
continue;
}
}
关于java - int 相当于 .charAt() 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18653867/