fork(4) download
  1. import java.io.UnsupportedEncodingException;
  2. import java.net.URLEncoder;
  3.  
  4. class Ideone
  5. {
  6. public static void main(String[] args) {
  7. try {
  8. System.out.println(URLEncoder.encode("xbox 360", "UTF-8"));
  9. System.out.println(ex);
  10. }
  11. }
  12. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
xbox+360