摘要:
队列使用中情况初始情况特点:first in first out应用到双端链表的方法: insertLast尾插法 deleteFirst 头删法做循环处理 队列的方法操作队列的插入队列的方法 public void insert(long j); // put item at rear(back) of queue//-------------------------------------------------------------- public long remove() ; // take item from front of queue//------------------- 阅读全文
摘要:
package com.cici.common;import java.io.BufferedReader;import java.io.InputStreamReader;public class SystemIn { public static int readInt(){ BufferedReader br = null; try{ br = new BufferedReader( new InputStreamReader( System.in) ) ; String line = br.readLin... 阅读全文