引用:http://hi.baidu.com/newjavaee/item/3be4f32060eb8b102a0f1cb4一个小东西,C/S程序中调用在线google map。不过需要用到一种技术,DJ NativeSwing 一个开源框架,很好用的。demo如下:/* * To change this template, choose Tools | Templates * and open the template in the editor. */package newgpsclientui;import chrriis.common.UIUtils;import chrriis.dj Read More
public class PriorityQ { private int maxSize; private long[] queArray; private int nItems; //constructor public PriorityQ(int s){ maxSize = s; queArray = new long[maxSize]; nItems = 0; } //insert public void insert(long item){ int j; ... Read More
public class Queue { private int maxSize;//数组大小 private long[] queArray; private int front;//队头 private int rear;//队尾 private int nItems;//数据项个数 //create Queue public Queue(int s){ maxSize = s; queArray = new long[s]; front = 0; rear = -1; ... Read More
public class StackX { private int maxSize; private char[] stackArray; private int top; //栈构造方法 public StackX(int max){ stackArray = new char[max]; top = -1; maxSize = max; } //入栈 public void push(char ch){ stackArray[++top] = ch;//top先自增1在执... Read More
package com.study.dataStructure.linearList;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;//栈类public class StackX { private int maxSize; private char[] stackArray; private int top; public StackX(int max){ stackArray = new char[max]; ... Read More
public class StackX { private int maxSize; private long[] stackArray; private int top; public StackX(int max){ stackArray = new long[max]; top = -1;//空栈 } public void push(long j){ stackArray[++top] = j; } public long pop(){ return stac... Read More