118551
May 15, 2015, updated at 18:24:46 (UTC)
1508
2
0
If abfrage Schlägt immer fehl (JAVA)
Hallo ich habe Folgendes Problem
diese if abfrage Schlägt immer fehl obwohl ich Window 7 Habe kann mir jemand sagen warum
Übrigens ist die Variable OS ist vom typ String
Danke im vorraus
LG DomiZone1
public Launcher(){
OS = System.getProperty("os.name");
System.out.println(OS);
if(OS == "Windows 7"){
StartLauncher();
}else{
JOptionPane.showMessageDialog(null, "Dein Betriebssystem (" + OS + ") wird nicht unterstüzt!", "Error", JOptionPane.OK_OPTION);
}
}
diese if abfrage Schlägt immer fehl obwohl ich Window 7 Habe kann mir jemand sagen warum
Übrigens ist die Variable OS ist vom typ String
Danke im vorraus
LG DomiZone1
Please also mark the comments that contributed to the solution of the article
Content-Key: 272114
Url: https://administrator.de/contentid/272114
Printed on: April 24, 2024 at 09:04 o'clock
2 Comments
Latest comment