public String printx(){
Scanner cc = new Scanner(System.in);
//後面這句會報異常
** String tx=new String (cc.next().getBytes(),"utf-8");**
System.out.println("原方法"+tx);
return tx;
}
試了下沒有報異常啊。。你報什麼異常?