---
title: "Java 使用中文开发"
author: "f0rb"
date: "2011-11-15T12:41:23Z"
tags: []
categories: ["编程语言"]
slug: "java"
draft: false
lastmod: "2011-11-15T12:41:23Z"
id: 1259540
url: "https://f0rb.iteye.com/blog/1259540"
---

```java

public class 测试 {
    private String 中文 = "中文类测试";

    public void set中文(String 中文) {
        this.中文 = 中文;
    }

    public String get中文() {
        return 中文;
    }

    public static void main(String[] args) {
        System.out.println(new 测试().get中文());
    }
}

```