I find out a quesiton, only record it, when i have time, i will study it.
package com.patsnap;
import java.util.Arrays;
import java.util.List;
public class TestListChar {
public static void main(String[] args) {
char[] arr = {',','-','-','?'};
List<char[]> list = Arrays.asList(arr);
char c = '?';
if (list.contains(c)) {
System.out.println("char");
}
String[] arrStrings = {"-",",","?"};
List<String> list2 = Arrays.asList(arrStrings);
String s = "?";
if (list2.contains(s)) {
System.out.println("string");
}
}
}
The output is : string.
The question is: why list.contains(c) is false?
分享到:
相关推荐
string.h函数的实现 char *strcpy_1(char *dst,const char *src) { while(*dst++=*src++); return dst; //notice: wrong return!!!! } //this is a fault function // Left it to remind me never ...
39. Where can I find central information about SAP HANA host and service startups and shutdowns? 40. How can a critical SAP HANA session be terminated? 41. Which types of dumps can be created in SAP ...
复旦大学知识图谱培训PPT1: Question Answering Benchmark and Semantic Parsing
He asked if I had any advice about how to turn the business description of a problem into a form that could be answered with data mining and data. Indeed, several other people in the same group asked...
if you have a question about Vi and Vim this is the book with the answers. Vi and Vim: Questions and Answers takes some of the best questions and answers asked on the vi.stackexchange....
(c) typing a syntactically correct SQL query that uses column and table names similar to the correct column and table names in a database (d) writing an English description of the data that the user...
自然语言处理, CoQA, 问答 CoQA_A_Conversational_Question_Answering_Challenge
"Data Structures And Algorithms Made Easy: Data Structure And Algorithmic Puzzles" is a book that offers solutions to complex data structures and algorithms. There are multiple solutions for each ...
More and More Knowledge bases are created • Google Knowledge graph, Yago,WordNet, FreeBase, Probase, NELL, CYC, DBPedia • Large scale, clean data
P of a string A and a partition Q of a string B, we say that the pair hP, Qi is a common partition of A and B if Q is a permutation of P. The minimum common string partition problem (MCSP) is to find ...
“I had a technical question about my project team here at Alpha Omega. Is Joe Hawke available?” “No, Mr. Hawke is also out of town. I am the assistant to the president. I would be happy to help you...
engineering decision popular question and Answers
Machine learning and security specialists Clarence Chio and David Freeman provide a framework for discussing the marriage of these two fields, as well as a toolkit of machine-learning algorithms that ...
Laravel开发-question-editor-and-player 暂无描述
A collection of Data Science Interview Questions Solved in Python and Spark: BigData and Machine Learning in Python and Spark
in nature—a question like where is the dog? shares substructure with questions like what color is the dog? and where is the cat? This paper seeks to simultaneously exploit the representational ...
After reading this book, there is no question about the necessary and important roles of security awareness, training, and motivation. -Donn B. Parker, CISSP, from the Preface Rebecca Herold, an ...
an exciting journey that covers all the essential topics and concepts to give you a head start in this field. If you find that your thirst for knowledge is not satisfied, this book references many ...