I need to develop a code that will convert decimal to binary....I have gotten stuck though on this certain part and was wonder
ing if any of you would be able to help see where my error is...
any help would be greatly appreciated !Code:public class binaryconvert {
public static void main(String [] args)
{
int convert (int j)
{
int n=j;
if (n==0) return 1;
else{
convert(n/2);
System.out.println(n%2);
}
}
}
}

