2014年10月26日 星期日

2014年10月23日 星期四

Java百分比

http://zhidao.baidu.com/question/575912742.html
注意 必須使用Double
若用Int/Int 你會得到0%

2014年10月6日 星期一

VideoView OnClickListener?

http://stackoverflow.com/questions/6175456/android-why-cant-i-give-an-onclicklistener-to-a-videoview

2014年10月5日 星期日

Java 小數第幾位

float fcalc = (float)3.14159;
NumberFormat nf = NumberFormat.getInstance();
nf.setMaximumFractionDigits( 2 );    //小數後兩位
System.out.println( "a / b = " nf.format( fcalc ) );