tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phil campaigne <pcampai...@charter.net>
Subject OFF TOPIC String to char type
Date Wed, 17 Nov 2004 16:51:38 GMT
  I am storing a flag in the database as type char, but it is set from a 
web page request object as a string. I need to convert it from type 
String to char in java. I tried String.charAt(0) which seems to convert 
to a char type untill I assign it to a variable of type char:
char processed = processed_string.charAt(0);
when I execute this I get the error message: type undefined.

Any ideas what I am doing wrong?
Thanks in advance,

Phil


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message