hi srini u can do first u had csv file right click for csv file add xy then after the ask lat long and also downside one edit option click then give the geographic coordinate projection click WGS 1984 then create the point data again export shapfile or feature class.then u access the data for use.
if any quary then let me no.
Are you asking how to write this with Runtime Java (which is this space), or are you asking how to do this in ArcGIS Desktop? (Which is what the above mentioned article is referring to)
I second Eric's question. Also note that if you have a CSV of points with named columns for latitude and longitude, you can just drag & drop the spreadsheet file onto a map on ArcGIS Online and see your points that way.