eclipse中编Java的中文输出乱码问题
package com.monly.main;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.Scanner;public class main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String name = null; Scanner input = new Scanner(System.in); System.out.println("请输入名字:"); try { name = input.next(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println("您刚才输入的名字:" + name); }}