title: How to solve error lossy convertion from int to char?
body: <p>I am begginer.While compiling this code</p>
  
  <pre><code>class UpperLowerCase
  
  {   
      static String ini = "I LOVE JAVA";
      static char str[] = ini.toCharArray();
      static char invr[] = new char[10];
      static int len = 0 , len1 = 0, i;
  
      static void toUpper()
      {
          for(i=0;i&lt;str.length;i++)
          {
              if(str[i]&gt;=97 &amp;&amp; str[i]&lt;=122)
                  invr[len1++]=(str[i]-32);
              else
                  invr[len++]=str[i];
          }
          invr[len1]='\0';
          System.out.println("Reverse of"+ str+" is \n"+ invr);
  
      }
  
      static void toLower()
      {
          for(i=0;i&lt;str.length;i++)
          {
              if(str[i]&gt;=65 &amp;&amp; str[i]&lt;=90)
                  invr[len1++]=str[i]-32;
              else
                  invr[len++]=str[i];
          }
          invr[len1]='\0';
          System.out.println("Reverse of"+ str+" is \n"+ invr);
      }
  
  public static void main(String [] args)
  {
      toUpper();
  }
  
  }
  </code></pre>
  
  <p>I get error "possible lossy conversion from int to char"</p>
  
  <p>How to convert int to char.</p>
  
  <p>Please help me by telling how to resolve this error?</p>