Queue class in java.util

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramadeviirrigireddy
    New Member
    • Jul 2007
    • 54

    #1

    Queue class in java.util

    Hi All,

    I'm have a program which will import java.util.Queue class. But i'm getting error here saying that "The import java.util.Queue cannot be resolved". can anyone tell me why is this happening? Thanks in advance
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by ramadeviirrigir eddy
    Hi All,

    I'm have a program which will import java.util.Queue class. But i'm getting error here saying that "The import java.util.Queue cannot be resolved". can anyone tell me why is this happening? Thanks in advance
    Which version of Java are you using?

    kind regards,

    Jos

    ps. Queue is an interface.

    Comment

    • madhoriya22
      Contributor
      • Jul 2007
      • 251

      #3
      Originally posted by ramadeviirrigir eddy
      Hi All,

      I'm have a program which will import java.util.Queue class. But i'm getting error here saying that "The import java.util.Queue cannot be resolved". can anyone tell me why is this happening? Thanks in advance
      Hi,
      I think you are using older version. This feature is added in 1.5 version of java.

      Comment

      • ramadeviirrigireddy
        New Member
        • Jul 2007
        • 54

        #4
        Originally posted by JosAH
        Which version of Java are you using?

        kind regards,

        Jos

        ps. Queue is an interface.
        Ya Jos ,

        I'm sorry i did mistake.

        Comment

        • ramadeviirrigireddy
          New Member
          • Jul 2007
          • 54

          #5
          Originally posted by madhoriya22
          Hi,
          I think you are using older version. This feature is added in 1.5 version of java.

          Hey i have 1.4 may be that is the reason it's giving error.

          Comment

          • ramadeviirrigireddy
            New Member
            • Jul 2007
            • 54

            #6
            Originally posted by madhoriya22
            Hi,
            I think you are using older version. This feature is added in 1.5 version of java.

            Hey i have 1.4 may be that is the reason it's giving error.

            Anyway thanks guys for your quick reply.

            Comment

            Working...