Dmitri
2010-06-29 08:57:49 UTC
class Exx2
{
public static void main(String[] args)
{
Console console=System.console();
System.out.println("please type a hexadecimal number");
String input;
input=console.readLine();
char c= input.charAt(0);
int count=0;
int number2=0;
String abc= "abcdef";
char NewC;
NewC='5';
if(c==c)
{
while(c==abc.charAt(count))
{
number2=9+count;
count++;
System.out.println(number2);
}
}
else
{
System.out.println(input);
}
}
}
if i write "a" it should look for it in the while loop till it finds it,, but all that process doesnt happen , why?