convert decimal to binary

Hi, I have a decimal value 70 for example and want to obtain it in binary like this:01000110.Can anyone please send me the code how to achieve this pleasethanks in advance
[199 byte] By [bronze-starDukes] at [2007-11-26 12:14:43]
# 1
Integer.toBinaryString() (or something like that)[url= http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html#toBinaryString(int)] here [/url]
silverstar at 2007-7-7 14:17:41 > top of Java-index,Archived Forums,Socket Programming...
# 2
Integer.toBinaryString(70)
platinumsta at 2007-7-7 14:17:41 > top of Java-index,Archived Forums,Socket Programming...