日期:2014-05-20 浏览次数:20794 次
package d_port_package;
import java.util.*;
public class MyArrayList{
/**
*
*/
private static final long serialVersionUID = 1L;
ArrayList<Long> list = new ArrayList<Long>();
public void add(long value){
list.add(value);
}
public void calculate(int index, long value){
if(index >= list.size()){
throw new RuntimeException("下标越界 " + index);
}
list.set(index, list.get(index) + value);
}
}
static MyArrayList MyBJMemUserAuthorizeTime = new MyArrayList();
static MyArrayList MyBJCusUserAuthorizeTime = new MyArrayList();
static MyArrayList MyYCMemUserAuthorizeTime = new MyArrayList();
static MyArrayList MyYCCusUserAuthorizeTime = new MyArrayList();
package c_port_packageDoctor;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class ReadTxt {
static ArrayList<String> logData = new ArrayList<String>();
static String text = null;
public static void read(String filePath) {
try {
FileReader input = new FileReader(filePath);
BufferedReader br = new BufferedReader(input);
while (( text = br.readLine()) != null) {
logData.add(text);
}
br.close();
input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void readMemoryData(String data){
logData.add(data);
}
public static void readMemoryArrayData(String[] data){
int len = data.length;
for(int i = 0;i<len;i++){
logData.add(data[i]);
}
}
}