View Single Post
Old Nov 8th, 2007, 7:04 AM   #5
Grich
Hobbyist Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 166
Rep Power: 1 Grich is on a distinguished road
Re: Decimal to binary help

You would have to make a class of it. For example:
public class Binary
{
public static String binToDec(int b)
{
return Integer.toBinaryString(b);
}
}
Just import it and use it. Classes are very in depth, wikipedia has some good articles on the topic.
__________________
SYNTAX ERROR ...
Grich is offline   Reply With Quote