SCJP題庫第143題

Given: System.out.printf("Pi is approximately %f and E is approximately %b, Math.PI, Math.E);
Place the values where they would appear in the output.

Ans:

解說:
%f float
%b boolean
System.out.printf 仿c時代的printf功能,指定格式輸出

Comments

Popular posts from this blog

Android+Google Map API v3 Geocoding(地址轉經緯度度