Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: Oughto on Dec 16, 2016



Title: What will be the value of matches after the following code has been executed?boolean matches;String ...
Post by: Oughto on Dec 16, 2016
What will be the value of matches after the following code has been executed?

boolean matches;
String str1 = "The cow jumped over the moon.";
String str2 = "moon";
matches = str1.endsWith(str2);

A) False
B) moon
C) The cow
D) True


Title: Re: What will be the value of matches after the following code has been executed?boolean ...
Post by: blithering on Dec 18, 2016
Content hidden


Title: Re: What will be the value of matches after the following code has been executed?boolean matches;String ...
Post by: Oughto on Jan 31, 2017
I literally took this as a gen ed course, I was lost thought it would be easy

thx for making it easier on me