title: printing Random Unicode Characters in java through infinite FOR loop
body: <p>I want to print random Unicode characters in a JFRAME in java by using an infinite <code>for loop</code>.</p>
  
  <p>I am a newbie in java programming and i hope the answer is not too complex.</p>
  
  <p>this is the code so far-</p>
  
  <pre><code>import java.awt.*;
  import javax.swing.*;
  import java.util.*;
  
  public class Matrix extends JFrame{
      private static final int NUMBER_OF_REPS = 0;
  
      public static void main(String[] args) {
          int a;
  
          Random rand=new Random();
  
          for(a=1;a&gt;0;)
          {
              JLabel lbl=new JLabel();
              lbl.setForeground(Color.GREEN);
              lbl.setFont(new Font("MS Arial Unicode",Font.BOLD,12));
              lbl.setText("\\u30"+Integer.toHexString(rand.nextInt(96) + 160));
          }
  
          JFrame frame=new JFrame();
          frame.setLocationRelativeTo(null);
          frame.pack();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setVisible(true);
          frame.getContentPane().setBackground(Color.BLACK);
  
          //error! lbl cannot be resolved to a variable
          frame.getContentPane().add(lbl);
          frame.getContentPane().setLayout(new FlowLayout());
      }  
  }
  </code></pre>