This topic contains a solution. Click here to go to the answer

Author Question: To divide BigDecimal b1 by b2 and assign the result to b1, you write ________. (Read 89 times)

tsand2

  • Hero Member
  • *****
  • Posts: 520

Question 1

What is the output of the following code?

public class Test {
public static void main(String[] args) {
java.math.BigInteger x = new java.math.BigInteger("3");
java.math.BigInteger y = new java.math.BigInteger("7");
x.add(y);
System.out.println(x);
}
}

◦ 10
◦ 3
◦ 11
◦ 4

Question 2

To divide BigDecimal b1 by b2 and assign the result to b1, you write ________.
◦ b1 = b2.divide(b1);
◦ b2.divide(b1);
◦ b1 = b1.divide(b2);
◦ b1.divide(b2);


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by tsand2 on May 6, 2020

ndhahbi

  • Sr. Member
  • ****
  • Posts: 390
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 29% of students answer this correctly




tsand2

  • Member
  • Posts: 520
Reply 2 on: May 6, 2020
YES! Correct, THANKS for helping me on my review


Mochi

  • Member
  • Posts: 300
Reply 3 on: Yesterday
Gracias!

 

Did you know?

As the western states of America were settled, pioneers often had to drink rancid water from ponds and other sources. This often resulted in chronic diarrhea, causing many cases of dehydration and death that could have been avoided if clean water had been available.

Did you know?

Famous people who died from poisoning or drug overdose include, Adolf Hitler, Socrates, Juan Ponce de Leon, Marilyn Monroe, Judy Garland, and John Belushi.

Did you know?

Complications of influenza include: bacterial pneumonia, ear and sinus infections, dehydration, and worsening of chronic conditions such as asthma, congestive heart failure, or diabetes.

Did you know?

When blood is deoxygenated and flowing back to the heart through the veins, it is dark reddish-blue in color. Blood in the arteries that is oxygenated and flowing out to the body is bright red. Whereas arterial blood comes out in spurts, venous blood flows.

Did you know?

More than 4.4billion prescriptions were dispensed within the United States in 2016.

For a complete list of videos, visit our video library