SCJP題庫第143題 Get link Facebook X Pinterest Email Other Apps - September 28, 2011 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功能,指定格式輸出 Get link Facebook X Pinterest Email Other Apps Comments
第2週作業 製作月曆左邊文字的部份 - September 21, 2022 第一步 建立一個資料夾及子資料夾,名稱分別是:「網頁前端介面設計」及「Part 1 左欄 今日資料」,畫面如下: <pre><code class='html'> [My HTML goes here] </code></pre> 第二步: 第三步: 第四步: 最後的結果畫面: Read more
Android+Google Map API v3 Geocoding(地址轉經緯度度 - November 28, 2012 package wells.example.googlemapexample; import android.app.Activity; import android.content.Context; import android.location.Criteria; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.view.View; import android.view.WindowManager; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout.LayoutParams; import android.widget.Toast; public class MainActivity extends Activity { private static final String MAP_URL = "file:///android_asset/googleMap.html"; private WebView webView; private EditText addressText; private Button submit; private boolean webviewReady = false; @Override /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceStat... Read more
Comments