Need help with c# to java code conversion

hi i just registered because i know there will be people here who can help me with the conversion. these are codes taken from my previous work on visual studio 2005. its a submit button action writing into a database with the button is clicked.