You need to refer and read the APIs at the least once
when you start posting questions areound this forum.
Java Ranch is supposedly not an FAQ provider. Ranchers are supposed to help people stuck in some form or the other when coding comes.
If you need step by step instructions, then you better code once and before coding you read the basics of Java, JDBC once.