Blueed Technology interview question

Given a string which is actually Java code write a program to make the string(Java code) have proper indentation.