fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. String hexCode = "7D44 13 05 00 06 0E 01 11 13 04 03 03 00 FE E0 AD AP 06 08 01 02 03 04 05 06 07 08 14 00 FD 14 02 11 05 01 0C H E G E M O N 1 2 3 4 5 6C C2";
  13. int start = 2 * 3 + 2;
  14. int end = 11 * 3 + 2; // Use 11 to include the 10th portion
  15. String r = hexCode.replace(hexCode.substring(start, end), "");
  16. System.out.println(r);
  17. }
  18. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
7D44 13 03 00 FE E0 AD AP 06 08 01 02 03 04 05 06 07 08 14 00 FD 14 02 11 05 01 0C H E G E M O N 1 2 3 4 5 6C C2