Posts

UFC 88

Image
UFC 88 From Wikipedia, the free encyclopedia Jump to navigation Jump to search UFC 88: Breakthrough The poster for UFC 88: Breakthrough. Information Promotion Ultimate Fighting Championship Date September 6, 2008 Venue Philips Arena City Atlanta, Georgia Attendance 14,736 Total gate $2,600,000 Buyrate 480,000 [1] Event chronology UFC 87: Seek and Destroy UFC 88: Breakthrough UFC Fight Night: Diaz vs. Neer UFC 88: Breakthrough was a mixed martial arts event held by the Ultimate Fighting Championship (UFC) on September 6, 2008 at Philips Arena in Atlanta, Georgia. [2] The event was headlined by a light heavyweight bout between Chuck Liddell and Rashad Evans. Contents 1 Results 2 Bonus awards 3 External links 4 See also 5 References Results [ edit ] Main card (PPV) Weight class Method Round Time Notes Light Heavyweigh...

Finding a substring within an array list made from file, java

Image
up vote 1 down vote favorite I have a text file from which I've created an Array list. Each line = one element of collection. Is there any way to find a specific word in that line, and if it's found, output that line to console? Right now that part of my code looks somewhat like this: protected static void FindBook() { System.out.print("Author's name: "); String neededauthor = sc.nextLine(); for (int k=0; k<=books.size(); k++) { if (books.get(k).contains(neededauthor)) System.out.println(books.get(k)); } } But it's giving me Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 Update: I've tried to fix it, and now the exception is gone, but it doesn't work either. After I enter the name, the method stops ...