/*************************************************************************** if testen ***************************************************************************/ import java.io.*; public class iftest { public static void main(String[] args) throws IOException { String teststring = "test"; if( !(teststring == null || teststring.equals(""))) { System.out.println("1. if, if-zweig (String gef?llt)"); } if(teststring == null || teststring.equals("")); else { System.out.println("2. if, else-zweig (String gef?llt)"); } if(teststring == null || teststring.equals("")) { ; } else { System.out.println("3. if, else-zweig (String gef?llt)"); } if(teststring == null || teststring.equals("")) { System.out.println("4. if, if-zweig (String ist leer)"); } else { System.out.println("4. if, else-zweig (String gef?llt)"); } } };