anonymous
  • anonymous
The expression (done | | s.compareTo(t) < 0) is true
MIT 6.00 Intro Computer Science (OCW)
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
assume that boolean done = false, int x = 10, int y = 11, String s = "Help" and String t = "Goodbye"
anonymous
  • anonymous
This is a Java problem
andrew.m.higgs
  • andrew.m.higgs
What does s.compareTo(t) do? I assume it is returning a value less than zero.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
it compares string S with t letter by letter. and returns true if both are equal
andrew.m.higgs
  • andrew.m.higgs
Can someone paste the code or problem here please?
anonymous
  • anonymous
This seems like a very strange thing to do and I don't know if there is a question here or what is is but evaluating the first expression since done is false and s is not the same as t we get. false || false < 0 since || is a logical OR operator we have false or false < 0 so how does one evaluate false < 0 ? well in some languages, false is just a fancy 0 and true is just a fancy 1 so it could potentially evaluate to false. In some languages it would say boolean start with 'b' and integer starts with 'i' and therefore it could evaluate to true since 'b' is less than 'i' and give us our two options false or false which is false false or true which is true I don't know if this helps or if it answers the question but there it is.

Looking for something else?

Not the answer you are looking for? Search for more explanations.