Answer to Question #11284 in Java | JSP | JSF for salena Holland

Question #11284
I am trying to add a method after the main method that will do a divison problem and show the answer on the screen.
1
Expert's answer
2012-07-03T10:48:14-0400
public static void main(String[] args) {
div();

}
public static
void div(){
double a=12.0;
double b=4.0;
System.out.println("Result:
"+a/b);
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS