Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Posts
    22

    Unanswered: Trouble with a final int

    Hello,
    if I want to compile the following script this error message occurs:

    Identifier expected.

    public class Test {
    public static final int STYPE = 2;
    public static void main(String[] args) {
    int m_Type = STYPE;
    System.out.println(m_Type);
    }
    }

  2. #2
    Join Date
    Nov 2003
    Location
    Pune, India
    Posts
    22
    u'r piece of code doesn't seem to give any compilation errors.
    Regards,
    Amit.K.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •