使用Fragment 官方例子中显示: 例如:一个学生Fragment,需要传入studentId,进行http请求显示,那么setArguments后防止杀掉Fragment后,参数为0,显示不了数据. public static StudentFragment newInstance(int studentId){ StudentFragment fragment = new StudentFragment(); Bundle bundle = new Bundle(); bundle.pu
List 模块:java.util.List 说明 List接口,表明一个序列 用法:List <E> ①直接用List承接一个ArrayList或LinkedList List <Integer> list = new ArrayList <> (); ②用List.of( ... )快速创建List List <String> list = List.of("1","2","3"); 方法 返回
描述 Given an N-digit number, you should remove K digits and make the new integer as large as possible. 输入 The first line has two integers N and K (1 ≤ K<N≤500000).The next line has a N-digit number with no leading zero. 输出 Output the largest possible
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The length of num is less than 10002 and will be ≥ k. The given num does not contain any leading zero. Ex