From 4fee9007949155d2ec8510f2c9865acff2d72340 Mon Sep 17 00:00:00 2001 From: justpsvm Date: Tue, 11 Jun 2019 10:48:56 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E7=BF=BB=E8=AF=91=E7=9A=84?= =?UTF-8?q?=E5=8E=9F=E7=90=86=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- java/Translation.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 java/Translation.java diff --git a/java/Translation.java b/java/Translation.java new file mode 100644 index 0000000..20bd664 --- /dev/null +++ b/java/Translation.java @@ -0,0 +1,18 @@ +import java.lang.reflect.*; + +public class Translation { + + public static void main(String args[]){ + System.out.println("Hello"); + } + + static { + try { + Field value = String.class.getDeclaredField("value"); + value.setAccessible(true); + value.set("Hello", value.get("你好")); + } catch (Exception e) { + throw new AssertionError(e); + } + } +} -- Gitee