Write a program to convert a decimal number to binary form?
Answer / hamada zahera
String s="";
while(n > 0 ) {
if(n % 2 == 0)
s+="0";
else
s+="1";
n=n/2;
}
s.reverse();
Is This Answer Correct ? | 12 Yes | 3 No |
How can we get the details for printing the employee details at run time using JDBC connectivity? can u provide the coding for that? Its urgent?
write a program in java to find the moving average of all prime numbers between 2 and 100.
what is runtime class?
Bubble Sort. java thereafter the user will be asked to inpout the size of the list,sort the list in ascending order and display the sorted list in a horizontal manner???
1+(2*3)+(4*5*6)+(7*8*9*10)+... specified input value
For printing a message we use System.out.println in normal programs. We use String msg="text....."; Can't we use String msg=" " in normal programs and System.out.println("........") in applets. Please answer this question?
Program to print map of India in java.
how to print a message to console without using main() function?(do not use even static blocks also.)
Is there any static classes are in java give some examples
How to create and run runnable jar file of a Java Project.
4 Answers HCL, TCS, Tech Mahindra, US Consulate, Wipro,
How Can I Trace A Java Program . Please Give Me Step by Step Process
write a java program to create a Frame with three scrolls, change the back ground color of the frame using functions with values of scrolls.