Ask a New Question

Question

1. Write a compareInts method that takes two integer parameters and prints out the statement
‘a’ is less than ‘b’
‘a’ is greater than ‘b’, or
‘a’ is equal to ‘b’

heres the code

compareInts(2, 3);
compareInts(3, 2);
compareInts(3, 3);

someone help please
4 years ago

Answers

oobleck
if a < b then print "a is less than b"
else ...
4 years ago

Related Questions

Hi, I have to write a method that returns my first name, middle initial, and last name as a singl... Write a systematic method to answer, 'How quickly and how do you produce rocket fuel?' using a bolin... Write a method that will take in a String parameter and return true if the first 2 chars in the stri... How would you write a method on a hypotheses relating to meaning in life and both physical and psych... Write a java method that will take two sorted stacks A and B (min on top), and return one stack D t... Using the R.A.D. method, write a minimum of 3 sentences. You will lose points if you do not answer i... Using the R.A.D. method, write a minimum of 3 sentences. You will lose points if you do not answer i... Using the R.A.D. method, write a minimum of 3 sentences. You will lose points if you do not answer... Using the R.A.D method, write a minimum of 3 sentences describing the changing attitudes of the Roma... Using the r a d method write a minimum of three sentences, we'll lose points if you do not answer in...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use