KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nextime > ion > backoffice > bean > Test


1 /*
2  * Created on 20.07.2003
3  *
4  * To change the template for this generated file go to
5  * Window>Preferences>Java>Code Generation>Code and Comments
6  */

7 package org.nextime.ion.backoffice.bean;
8
9 import java.util.Locale JavaDoc;
10 import java.io.File JavaDoc;
11
12 /**
13  * @author Jan Prill
14  * @date 20.07.2003
15  * To change the template for this generated type comment go to
16  * Window>Preferences>Java>Code Generation>Code and Comments
17  */

18 public class Test {
19
20     public static void main(String JavaDoc[] args) {
21         
22         Locale JavaDoc currentLocale = new Locale JavaDoc("de");
23         Locale JavaDoc 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