close

System.out.println("DUCK/"+);
Java string to int(字串轉整數)
1. int intValue = Integer.valueOf("12345");
2. int intValue = Integer.parseInt("12345");
Java string to float(字串轉浮點數)
1.float test = Float.parseFloat("123.4");
2.double test = Double.parseDouble("123.4");
Java int to String(整數轉字串)
1. String stringValue = Integer.toString(12345);
2. String stringValue = String.valueOf(12345);
3. String stringValue = new String(""+12345);
//呼叫BT_IndexMain裡面的function
//宣告
//引用別人檔案宣告
BT_IndexMain IndexMain;
IndexMain = new BT_IndexMain();
//呼叫
IndexMain.getDateFormat();
字串比較
If(checklistArray[i][5].equals("Y"))
Null比較
If(checklistArray[i][5]==null)
數字比較
If(Number==number)
android view的setVisibility方法值的意思
有三个值 visibility One of VISIBLE, INVISIBLE, or GONE.
常量值为0,意思是可見的
常量值为4,意思是不可見的
常量值为8,意思是不可見的,而且不占用布局空间
/*EditText 顯示英文鍵盤*/
android:digits="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM"
/*設淡化效果*/
setAlpha(40);

arrow
arrow
    全站熱搜

    鴨鴨仔 發表在 痞客邦 留言(0) 人氣()