2017年2月21日
摘要: 我用String代替了链表显示,本题的大意是每k个进行逆序处理,剩下的不够k个的就按照原顺序保留下来。 public class ReverseNodes { public static void main(String[] args) { String str = "1->2->3->4->5-> 阅读全文
posted @ 2017-02-21 19:40 蒋闯 阅读(159) 评论(0) 推荐(0) 编辑
摘要: public class GetMinNumber { public static void main(String[] args) { String[] arr = null; System.out.println("输入一行待处理的整型数据,并以逗号隔开:"); Scanner input = 阅读全文
posted @ 2017-02-21 15:29 蒋闯 阅读(130) 评论(0) 推荐(0) 编辑