1 7 package org.nextime.ion.backoffice.bean; 8 9 import java.util.Locale ; 10 import java.io.File ; 11 12 18 public class Test { 19 20 public static void main(String [] args) { 21 22 Locale currentLocale = new Locale ("de"); 23 Locale locs[] = Locale.getAvailableLocales(); 24 25 for (int i=0; i < locs.length; i++) { 26 if (currentLocale.equals(locs[i])) { 27 break; 28 } 29 System.out.println(locs[i].getLanguage()); 30 } 31 32 File f = new File("E:/Downloads/ionn-cms/Versions/bin/demoIon0.8_dl20030706/ion0.8/ion0.8/conf/templates.xml"); 33 if (f.exists()) 34 System.out.println("gibbted!!!!!!!"); 35 else 36 System.out.println("gibbted nicht;;;;;;;;;;;;;;"); 37 } 38 } 39 | Popular Tags |