我已经使用api 16创建了一个与地图相关的应用程序,只要运行此应用程序就会弹出这个错误.
[2012-10-18 20:05:26 - Maps] Android Launch!
[2012-10-18 20:05:26 - Maps] adb is running normally.
[2012-10-18 20:05:26 - Maps] Performing com.example.maps.MainActivity activity launch
[2012-10-18 20:05:29 - Maps] Launching a new emulator with Virtual Device 'andi'
[2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
[2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
[2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
[2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
[2012-10-18 20:05:38 - Emulator] could not get wglGetExtensionsStringARB
[2012-10-18 20:05:38 - Emulator] …Run Code Online (Sandbox Code Playgroud) 如何尽可能优化此功能
public void r1(String st1, int[] ar1) {
String inox = "newsearch";
for (int j = 0; j < ar1.length; j++) {
if (st1.equals(inox) && ar1[j] * 2 > 20) {
Integer intx = new Integer(ar1[j]);
intx = intx * 2;
System.out.print(intx.toString());
}
}
}
Run Code Online (Sandbox Code Playgroud)