How a String variable assignment to a ASCLL yards value?

  Abstract: How a String variable assignment to a ASCLL yards value? 


  JDK, did not find an answer: ( 



  Char c = 56; 
  String str = String.valueOf (c); 
  This is not meant? 



  Not ah?    Not assignment 

  String s = "123"; 
  Char c = 56; 
  Int i = 100; 
  C = i; 
  S = String.valueOf (c); 

  Said: Type mismatch: cannot convert from int to char 

  Write the code in JSP 



  Ascii 8-bit code is used byte type bar. 



  Do not have much understanding of the char, the String impact, not just to switch to the c = (char) i; 



  ↑ Back 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags: ,

Releated Java Articles

Comments

Leave a Reply