fork download
  1. class Permutations {
  2.  
  3. String returnStr(String[] i) {
  4.  
  5. String finalStr;
  6.  
  7.  
  8.  
  9. }
  10.  
  11. boolean prevspace(String k) {
  12.  
  13. if(k == " ") {
  14.  
  15. return true;
  16. }
  17. else {
  18. return false;
  19. }
  20. }
  21.  
  22.  
  23.  
  24. public static void main(String[] args) {
  25.  
  26. String[] combo = ["a", "b", "c", " "];
  27. String[] iterations = new String(pow(combo[].length, 2));
  28.  
  29. for(int i=0; i<3; i++) {
  30.  
  31. if(prevspace(combo[i])) {
  32.  
  33.  
  34.  
  35.  
  36. }
  37. }
  38.  
  39. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:26: error: illegal start of expression
        String[] combo = ["a", "b", "c", " "];
                         ^
Main.java:26: error: not a statement
        String[] combo = ["a", "b", "c", " "];
                          ^
Main.java:26: error: ';' expected
        String[] combo = ["a", "b", "c", " "];
                             ^
Main.java:27: error: class expected
        String[] iterations = new String(pow(combo[].length, 2));
                                                     ^
Main.java:39: error: reached end of file while parsing
}
 ^
5 errors
stdout
Standard output is empty