Search:

Type: Posts; User: Tjstretch

Search: Search took 0.10 seconds.

  1. Re: Comparing a character to an array of strings

    No problem, however string literals aren't chars.

    pathInfo[row][column] is a string, but '*' is a char, so you are comparing a String to a char, which I'm surprised compiles.

    Double quotes(")...
  2. Re: Comparing a character to an array of strings

    An extension of what ppme said:

    When comparing two string literals, it is best to use the .equals() method to compare if each char is the same, rather than the == comparison operator that will...
Results 1 to 2 of 2