fork(1) download
  1.  
  2. import java.util.Arrays;
  3.  
  4. class Ideone
  5. {
  6. public static void main (String[] args)
  7. {
  8. String student [] = {"BAT4M0ABBB4M0ABOH4M0CCHI4U0AENG4U0DMDM4U0B"};
  9. String[] array = student[0].split("(?<=\\G.{7})");
  10. System.out.println(Arrays.toString(array));
  11. }
  12. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
[BAT4M0A, BBB4M0A, BOH4M0C, CHI4U0A, ENG4U0D, MDM4U0B]