实际上我下载了"Eclipse Juno 4.1",但无法提供Android SDK路径,因为它在"首选项"菜单中没有"Android"选项.
我今天只是随机练习JS代码,我把这行代码放到了代码中.
var name = 45;
console.log(typeof name);Run Code Online (Sandbox Code Playgroud)
它告诉我变量名的类型是一个字符串.这很奇怪但是当我键入这个时,Name的类型是String:
var age = 45;
console.log(typeof age);Run Code Online (Sandbox Code Playgroud)
但这里的变量年龄类型是Number.为什么我会观察到这种不一致?是一些约会还是这样的?
我正在使用此代码.
try{
// Open the file that is the first
// command line parameter
FileInputStream fstream = new FileInputStream("config.txt");
// Get the object of DataInputStream
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
while ((br.readLine()) != null) {
temp1 = br.readLine();
temp2 = br.readLine();
}
in.close();
}catch (Exception e){//Catch exception if any
Toast.makeText(getBaseContext(), "Exception", Toast.LENGTH_LONG).show();
}
Toast.makeText(getBaseContext(), temp1+temp2, Toast.LENGTH_LONG).show();
Run Code Online (Sandbox Code Playgroud)
但是这显示异常并且没有更新temp1和temp2.