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 to create Date method to set the date in Ms Access
we compile any program bu c:/>javac prog.java and run as c:/>java prog Here what's the meaning of c in javac. We have java Interpreter but not compiler.Then why we have to use javac. Please answer this question?
1+(2*3)+(4*5*6)+(7*8*9*10)+... specified input value
Design a program using one-dimensional array that determines the highest value among the eight input values from a user. Display the difference of each value from the highest to the lowest.
how to store and retrive a set of values without using an array
write a program in java to solve a system of n-variabled simultaneous equations using the guassian elimination method. let the maximum possible value of n be 100. run the program using hypothetical values for a set of 10- variables simultaneous equations. print out the program, the input equation and the results generated by the program.
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???
what are the other loops except for for,while,do while and until?
does anyone know the code to display a triangle using a applet?
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?
I am trying to pass the string firstName from a Servlet called SampleServet. I am running this on eclipse and it tells me that "the value for annotation attribute must be a constant expression. I don't understand why it is giving me this error. @PersonAnnotation(name = SampleServlet.firstName) public class AnnotationClass{
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?