elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   Off Topic (https://www.elitepvpers.com/forum/off-topic/)
-   -   Was habt ihr als letztes kopiert? (https://www.elitepvpers.com/forum/off-topic/765331-habt-ihr-als-letztes-kopiert.html)

Stuffel 02/21/2012 23:02

[Only registered and activated users can see links. Click Here To Register...]

Shishihara 02/21/2012 23:04


Yunchen 02/21/2012 23:38


TANZVERBOT 02/22/2012 01:11

Sido feat Mario Barth - Ick Liebe Dir.

Shishihara 02/22/2012 08:01


SeyeZoN 02/22/2012 09:12


RevoGTS 02/22/2012 10:41


Ravenstorm 02/22/2012 10:47

Code:

int rating = 0;

    Map<IBook, Integer> books = new HashMap<IBook, Integer>();

    /**
    * Add a rated book to the shelf.
    *
    * @param book
    *            the book to add
    * @param rating
    *            how much did you like this book?
    * @throws NullPointerException
    *            if book is null
    */

    @Override
    public void addBook(IBook book, int rating) {

        if (book.getYear() < 1900) {

            throw new IllegalArgumentException("release date < 1900");

        }

        if (book.getTitle().isEmpty()) {

            throw new IllegalArgumentException("kein Buchtitel gebeben");

        }

        if (book.getAuthors() == null || book.getAuthors().isEmpty()) {

            throw new IllegalArgumentException("keine Authoren vorhanden");

        }

        if (books.containsKey(book)) {

            throw new IllegalArgumentException(
                    "Das selbe Buch ist schon Vorhanden");

        }

        for (Map.Entry<IBook, Integer> e : books.entrySet()) {

            if (book.getAuthors().equals(e.getKey().getAuthors())
                    && book.getTitle().equals(e.getKey().getTitle())
                    && book.getYear() == e.getKey().getYear()) {

                throw new IllegalArgumentException();

            }

        }


RevoGTS 02/22/2012 11:24

[Only registered and activated users can see links. Click Here To Register...]

rouvn 02/22/2012 11:58

[Only registered and activated users can see links. Click Here To Register...]

Varus™ 02/22/2012 11:59


Ravenstorm 02/22/2012 11:59

Code:

    /**
    * Add a rated book to the shelf.
    *
    * @param book
    *            the book to add
    * @param rating
    *            how much did you like this book?
    * @throws NullPointerException
    *            if book is null
    */


RevoGTS 02/22/2012 12:02

[11:36:25] Emir / iGotTnT: Immernoch bei 303 !

Yunchen 02/22/2012 12:18


rouvn 02/22/2012 12:25

[Only registered and activated users can see links. Click Here To Register...]


All times are GMT +2. The time now is 15:48.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.