Working code of a java application acceptin cookies?

I read through the tutorials and I couldn't get the CookieHandler class to work how I intended it to. Can anyone show me some working code of a java application accepting cookies so that it can read a website?
[217 byte] By [bronze-starDukes] at [2007-11-26 12:15:35]
# 1
We are using jdk 1.4 version. In our project, we used javax.servlet.http.Cookie to set/get cookie. This is very straight forward to use. If you need any help on this, let me know.
bronzestar at 2007-7-7 14:19:36 > top of Java-index,Archived Forums,Socket Programming...