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?
分享到:
相关推荐
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 ...
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...
"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 ...
CoQA_A_Conversational_Question_Answering_Challenge CoQA 是一个旨在推动 Conversational Question Answering(对话式问题回答)技术发展的挑战项目。该项目的目标是建立一个能够回答对话式问题的系统,以便机器...
More and More Knowledge bases are created • Google Knowledge graph, Yago,WordNet, FreeBase, Probase, NELL, CYC, DBPedia • Large scale, clean data
When you have a question about how to use C# 5.0 or the .NET CLR, this highly acclaimed bestseller has precisely the answers you need. Uniquely organized around concepts and use cases, this fifth ...
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 ...
Node State/Representation:** In GNNs, each node maintains a state or representation that captures information about its neighborhood. These states are updated iteratively based on the messages ...
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 ...
Find out about important and advanced data structures such as searching and sorting algorithms Understand important concepts such as big-o notation, dynamic programming, and functional data structured...
Despite the tremendous strides we've made, the pursuit of knowledge remains an endless journey, one that challenges us to confront our assumptions, question our certainties, and embrace the mysteries...