Using nor,al javaio

Is it possable to use norma jaa io to program a robot! baring in mind i would need to write spacific files so it is a must!

Also i would be greatful if someone could give a a short example of source code in java to male a servo turn 90 degrees left and 90 degrees write when there is movment!

Kind regards

the game!