import java.text.NumberFormat;
public class TeachYou {
public static void main(String[] args) {
//????????????“D”?????????Double??????????????????????????????
double percent = 50.5D / 150D;
//?????£???????С??????
System.out.println("С????" + percent);
//????????????
NumberFormat nt = NumberFormat.getPercentInstance();
//???e?????????2????????λС??
nt.setMinimumFractionDigits(2);
//???????????
System.out.println("???????" + nt.format(percent));
}
}