title: Why is my program being marked as wrong answer in vjudge.net, alhough my output is the same?
body: <p>This is the question:
  <a href="https://uva.onlinejudge.org/external/100/10082.pdf" rel="nofollow noreferrer">https://uva.onlinejudge.org/external/100/10082.pdf</a>
  Here is my code:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Main {
  
  
  
      public static void main (String [] abc) 
      {
          Scanner sc=new Scanner(System.in);
  
          String b="QWERTYUIOP[]ASDFGHJKL;'ZXCVBNM,./";
          String result="";
          String input=sc.nextLine();
          String uppercase=input.toUpperCase();
          for(int i=0;i&lt;uppercase.length();i++)
          {
              try
              {
              for(int c=0;c&lt;b.length();c++)
              {
  
            if(uppercase.charAt(i)==b.charAt(c))
              {
                  result=result+b.charAt(c-1);
                  break;
              }
              else if(Character.isWhitespace(uppercase.charAt(i))==true)
              {
                  result=result+ " ";
                  break;
              }
              }
              }
              catch(Exception e)
              {
                  continue;
              }
          }
          System.out.println(result);
      }
  
  }
  </code></pre>
  
  <p>I don't know what is wrong about this code. The output is the same as the output in the question</p>