Results 1 to 2 of 2
  1. #1
    Srcee is offline Member
    Join Date
    Oct 2009
    Posts
    14
    Rep Power
    0

    Default Unhandled exception type. Help

    I'm wrtiting a program for Queue which has these two functions:

    public Object dequeue () throws QueueZadIsEmptyException {
    if (isEmpty())
    throw new QueueZadIsEmptyException ();
    ElementProces temp = head.next;
    head.next = temp.next;
    temp.next = null;
    if (temp == tail) tail = head;
    return temp.ime;
    }

    and

    static void procesiranje(QueueZad a,QueueZad b,QueueZad c )throws IOException{
    while(!a.isEmpty() || !b.isEmpty() || !c.isEmpty()){
    if(!a.isEmpty()){
    if(a.getHead().golemina <= 5){
    a.dequeue(); //////////here
    }
    }


    }
    }

    At the line with /////// an "unhandled exception type" is making a problem. Can someone help me?



    OMG I got it. Tnx anyway

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    If you've solve the problem, please mark the thread as solved from the tools menu. And also please use code tags when you posting again, unformated codes are hard to read.

Similar Threads

  1. Menu Type cast Exception
    By arulmozs in forum AWT / Swing
    Replies: 8
    Last Post: 11-02-2009, 11:34 PM
  2. type of exception?
    By hedonist in forum New To Java
    Replies: 3
    Last Post: 08-19-2009, 08:04 PM
  3. Unhandled exception
    By McChill in forum New To Java
    Replies: 1
    Last Post: 02-24-2009, 01:01 AM
  4. [SOLVED] Cast string type to int type
    By GilaMonster in forum New To Java
    Replies: 9
    Last Post: 09-17-2008, 11:43 AM
  5. Replies: 1
    Last Post: 03-08-2008, 07:41 PM

Posting Permissions

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