public class MainActivity extends Activity {
String PASS = "myPassWord.txt";
Button addbtn, readbtn, modifybtn, savebtn;
EditText addet, modifyet;
TextView tv;
ScrollView sv;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
s...
public class MainActivity extends Activity {
private TextView tv1, tv2, tv3, tv4, tv5, tv6, tv7, tv8, tv9, tv10, tv11,
tv12, tv13, tv14;
private EditText et1, et2, et3;
private Button bt1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedIns...
public class Calculate {
/**
* @param args
*/
private final static char[] arrayoperate = { '+', '-', 'x', '/' };
public char getOperate() {
Random rdm = new Random();
return arrayoperate[rdm.nextInt(4)];
}
public int getData2() {
Random rdm = new Random();
r...
public class Node {
private Object value;
public Node(Object value) {
this.value = value;
}
public String toString() {
return value == null ? "" : value.toString();
}
}
/***************************************************/
public class Border {
...
>>>>鼠标右键
>>>> Run Configurations
>>>>双击java application
>>>> 单击有main方法的类
>>>>选中classpath选项卡
>>>>remove掉... Entries下的android.jar
http://cslibrary.stanford.edu/110/BinaryTrees.html
public class BinTree {
private Node root;
public static class Node {
private int data;
private Node left;
private Node right;
public Node(int data) {
this.data = data;
}
}
public BinTree() {
this....