KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > AccentedTextExample


1 /* ****************************************************************************
2  * AccentedTextExample.java
3  * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9 package examples;
10
11
12 import java.util.ArrayList JavaDoc;
13
14 //------------------------------------------------------------------------------
15
// See examples/javarpc/accentedtext.lzx
16
//------------------------------------------------------------------------------
17

18 public class AccentedTextExample {
19
20     public static void getVoid() { }
21
22     public static String JavaDoc getJapaneseChars() {
23         return "\u3080 \u30c0 \u30d0 \u30e0 \u30f0 \u30a1 \u30b1 \u30c1 \u30d1 \u30e1 \u30f1 ";
24     }
25
26     public static String JavaDoc getAccentedChars() {
27         return "\u0063\u0068 \u0078\u0323 \u019B\u0313";
28     }
29
30     public static ArrayList JavaDoc getArrayListOfString() {
31         ArrayList JavaDoc list = new ArrayList JavaDoc();
32         list.add("\u00c0");
33         list.add("\u00d0");
34         list.add("\u00e0");
35         list.add("\u00f0");
36         list.add("\u00c1");
37         list.add("\u00d1");
38         list.add("\u00e1");
39         list.add("\u00f1");
40         list.add("\u00c2");
41         list.add("\u00d2");
42         list.add("\u00e2");
43         list.add("\u00f2");
44         list.add("\u00c3");
45         list.add("\u00d3");
46         list.add("\u00e3");
47         list.add("\u00f3");
48         return list;
49     }
50 }
51
Popular Tags