fork download
  1. import re,sys
  2. p=sys.stdin.read()
  3. s=re.sub('\s+(=|{|}|(|))\s+', r'\1', p)
  4. print len(p)-len(s),s
Success #stdin #stdout 0.01s 9016KB
stdin
class Condition {
    public static void main(String[] args) {
        boolean learning = true;

        if (learning == true) {
            System.out.println("Java programmer");
        }
        else {
            System.out.println("What are you doing here?");
        }
    }
}
stdout
88 class Condition{public static void main(String[] args){boolean learning=true;if (learning == true){System.out.println("Java programmer");}else{System.out.println("What are you doing here?");}}
}