Code example for LinkedList

Methods: removeFirst

0
                throw new Error(me);
            } 
        } 
 
        public void endMultipart() { 
            stack.removeFirst();
        } 
 
        public void startBodyPart() { 
            expect(MimeMultipart.class); 
 
            try { 
                MimeBodyPart bodyPart = new MimeBodyPart();
                ((MimeMultipart)stack.peek()).addBodyPart(bodyPart);
                stack.addFirst(bodyPart);
            } catch (MessagingException me) {
                throw new Error(me);
            } 
        } 
 
        public void endBodyPart() {