Basically, you can use the below code snippet to use the contains method like this: boolean contains = false;. for (char c : charArray) {. if (c == 'q') {.
確定! 回上一頁