1. 题目
读题
考查点
2. 解法
思路
代码逻辑
具体实现
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String target = sc.nextLine();
String source = sc.nextLine();
System.out.println(contain(target, source));
}
public static boolean contain(String target, String source) {
for (int i = 0; i < target.length(); i++) {
char c = target.charAt(i);
if (source.contains(String.valueOf(c))) {
return false;
}
}
return true;
}
}