Array operations?
<p>I want to know if there is something similar to (input==(letters[i]-'c')) that i can use. I know what i type doesn't make sense but i'm trying to create something similar to that. If the user's input is anything in the array but c, then it displays the first message, else if it is c, then it displays the second message. I just want to somehow temporarily exclude c from the array and have the program check all other elements...</p>

<pre><code>char []letters={'a','b','c','d'};
//input is user input

for(int i=0;i&lt;letters.length&lt;;i++)
   if(input==(letters[i]-'c'))
   {
     system.out.print("input might be a,b,d but not c");
   }
   else if(input=='c')
   {
     system.out.print("input is c");
     break;
   }
</code></pre>
