摘要: public class Solution15 { //在原字符串中找子字符串,如果存在返回下标位置,如果不存在则返回-1; public int strStr(String haystack, String needle) { int i=0; if(haystack.contains(needl 阅读全文
posted @ 2020-03-26 21:32 哈哈,呵呵,嘿嘿 阅读(203) 评论(0) 推荐(0)
摘要: import java.io.*;public class BufferedStreanTest2 { public static void main(String[] args) throws IOException { String content[]={"你不喜欢你,","我一点都不介意"," 阅读全文
posted @ 2020-03-26 21:30 哈哈,呵呵,嘿嘿 阅读(266) 评论(0) 推荐(0)
摘要: import java.util.InputMismatchException;class Node{ int val; Node next; public Node(int val, Node next) { this.val = val; this.next = next; } public N 阅读全文
posted @ 2020-03-26 21:29 哈哈,呵呵,嘿嘿 阅读(105) 评论(0) 推荐(0)
摘要: import java.util.ArrayList;import java.util.List;import static java.util.Collections.shuffle;class Card{ private String rank; private String suit; pub 阅读全文
posted @ 2020-03-26 21:26 哈哈,呵呵,嘿嘿 阅读(204) 评论(0) 推荐(0)