Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import org.springframework.expression.Expression;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.util.Assert;
import org.apache.commons.logging.LogFactory;
import java.util.Date;
public class main {
* @param args
* @throws Exception
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
ExpressionParser parser = new SpelExpressionParser();
System.out.println("Please enter a date and I will parse it:"); stdin = new;
String line = stdin.readLine();
Expression exp = parser.parseExpression(line);
Date date = (Date)exp.getValue();
// T(Runtime).getRuntime().exec('calc.exe')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.