Create FunctionOneVariable.java

emulates a function in one variable i.e. x