Write short java statements to complete each of the


Please use your own words, Don't use a picture.Write short Java statements to complete each of the following tasks:

1- Test whether variable x is less than 5. If it is, print "x is less than 5"

2- Test if String x is equal to String y. if it is , print "Identical Strings"

3- Test whether variable x is even (An even number is an integer that is exactly divisible by 2) .if it is , increment x

4- Create an if statement that is unconditionally true

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write short java statements to complete each of the
Reference No:- TGS02894616

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)