java question, how do you interpret this question.

This is a discussion on java question, how do you interpret this question. within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I'm not asking for code, not asking for code help, but I can't even figure out what this question is ...

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    java question, how do you interpret this question.

    I'm not asking for code, not asking for code help, but I can't even figure out what this question is asking me. For those familiar with java could you help me out.

    The Collection interface in the Java Collections API defines methods removeAll, addAll, and containsAll. Add these methods to the Collection interface and provide implementations in AbstractCollection
    the collections interface defindes the methods, but I have to add them? And AbstractCollection class already implements these methods because it implements the Collection interface. Is he asking me to create my own AbstractCollection class and implement these methods? Is it asking me to use the book's example which doesn't implement them? This book sucks, and I'm not fond of all these interfaces either.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    I think they want you to duplicate the code in the standard library.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    That's what I though, but this book is incredibly vague, a lot of the questions are very "open" in that they tell you what to do, but don't specifically tell you that you don't have to do it one way.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >a lot of the questions are very "open" in that they tell you what to do, but
    >don't specifically tell you that you don't have to do it one way.
    Sounds like my job.
    My best code is written with the delete key.

  5. #5
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    well, yeah, but the thing is like one question, it will give you a method header and tells you to use it to solve the problem. I'll spend all day until I learn that the method the way it's declared could not solve the problem, but it doesn't say to modify the header, it just lays it on you, telling you little else. For a programming exercise it's a little less focused. Maybe it's just me, I'll ask my professor later.

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >but it doesn't say to modify the header, it just lays it on you, telling you little else
    Most likely it's a poorly designed question, but I rather like the idea of problems that force you to think squiggly.
    My best code is written with the delete key.

  7. #7
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    yah, maybe the other teacher I have is right, he jokingly say this guy (a teacher at my university) wrote a book to get a younger wife or something like that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mats, the java answers
    By Jaqui in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 04-22-2008, 03:12 AM
  2. Java vs C to make an OS
    By WOP in forum Tech Board
    Replies: 59
    Last Post: 05-27-2007, 04:56 AM
  3. Windows GDI vs. Java Graphics
    By Perspective in forum Windows Programming
    Replies: 7
    Last Post: 05-07-2007, 11:05 AM
  4. How to use Java with C++
    By Arrow Mk 84 in forum C++ Programming
    Replies: 2
    Last Post: 02-27-2003, 04:12 PM
  5. A question for .. java!
    By McAuriel in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 12-01-2002, 11:16 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21