Re: Brand new to Java student



On Jan 29, 6:53 am, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Andrew Thompson wrote:
On Jan 29, 6:24 am, "Sandy" <s...@xxxxxxxxxxxxxx> wrote:
I am taking a course and we are using Java as our language. I haven't
used Java before so I am VERY new.
....
// compare the string contents
if ( type.equals("C") || type.equals("c") )
....

or type.equalsIgnoreCase("c")

Good point.

Andrew T.

.