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. // your code goes here
  13. String str= "bla bla black ship";
  14. StringBuilder bin_str= new StringBuilder();
  15. for (char ch:str.toCharArray()){
  16. for (i=0;i<7;i++){
  17. bin_str.append((ch & 64)==0?0:1);
  18. }
  19. }
  20. String[1][] test=bin_str.split("0+");
  21.  
  22. }
  23. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:20: error: illegal start of expression
		String[1][] test=bin_str.split("0+");  
		          ^
Main.java:20: error: not a statement
		String[1][] test=bin_str.split("0+");  
		         ^
Main.java:20: error: ';' expected
		String[1][] test=bin_str.split("0+");  
		           ^
3 errors
stdout
Standard output is empty