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. int[] n = new int[300];
  13. for(int i = 0; i < n.length; i++) {
  14. n[i] = (int)(Math.random() * 100);
  15. } String string = "";
  16. int size = 68;
  17. for(int i = 0; i < n.length; i++) {
  18. string += n[i];
  19. }
  20. for(int i = 0; i < string.length() / size + 1; i++) {
  21. System.out.print(string.substring(i * size, Math.min((i + 1) * size, string.length())));
  22. System.out.println("\\");
  23. }
  24. }
  25. }
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
54244721257247315138104235901033794396257130952255423045781728228647\
46958388526878911395209062613063907554638266311203824181161610271388\
67927709872635922797015347272885181662378817693015368714769944217596\
86169821906889485771164229790855073994089338684833292921718165210933\
27914504011076154354554910234128253218987591099316557586911118329345\
23449874351352124696128993246483696875133109295510205848175191880409\
25548743278746392336062315293355340966506414636155531724955911298698\
17422196411167643457599734419882369126914139625823621157517218552407\
6958905174372740888269\