Search:

Type: Posts; User: ziplague

Search: Search took 0.10 seconds.

  1. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    This is the end of this thread, due to deadlines and exams coming soon, i have to submit my Java project for grading.
    I want to thank everyone who helped me improve my code and solve problems :)...
  2. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    I fixed the out of bounds exception.
  3. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    By the way, about the error that i'm getting: it only occurs with certain indexes, usually with the ones at the end of the array (last index), if i add 3 books, index 2 and 1 work fine, which...
  4. Replies
    22
    Views
    24,214

    [SOLVED] Re: Unexpected Error

    My bad, i uploaded the wrong version by mistake, here is the up to date version: 1121

    About the right placement of the methods, you're right, i thought about that. I will move them to the book...
  5. Replies
    22
    Views
    24,214

    [SOLVED] Unexpected Error

    I updated my code and everything seems to be working fine with minor duplicates which i'm going to address tomorrow, but i keep getting this error:

    Exception in thread "main"...
  6. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    My lecturer told me that i can use someone else's code on three conditions:
    1- i must understand the code, how it works etc...
    2- it should constitute less than a third of my code, meaning that it...
  7. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    @Tjstretch: Wow, cool, thank you for the fix :)
  8. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    I just finished re-factoring the code into 6 different Classes, i can see the advantages now :) and i managed to use the Console class (it simplified lots of steps). I still have some minor bugs that...
  9. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    I played around with the Console methods, all of them work great, as intended, apart from the readString() methods. If i press enter without writing anything, it prints the error prompt but then...
  10. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    I have read the article and the code, some of it is a little hard to understand because i'm not used to using parameters in methods yet. How can i use the methods in class Console in class Book? ...
  11. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    Alright, i'm reading the article right now, and i will address this issue today, thanks.
  12. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    About the "if" choice statements, i'm familiarizing myself with the switch statement that was suggested, i never used it before. i can already see how it could reduce the code considerably, i just...
  13. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    Thanks for pointing that out, i was planning on separating the parts at the end, it's just that i had lots of "static/non-static accessing methods and instances" problems at first so i just accepted...
  14. Replies
    22
    Views
    24,214

    [SOLVED] Re: Simple Library Program / Need feedback.

    "How are you dealing with invalid user input? The first thing your lecturer is going to do is to break your code by trying to put something invalid as a menu choice."
    i know :) i broke it myself, i...
  15. Replies
    22
    Views
    24,214

    [SOLVED] Simple Library Program / Need feedback.

    Hi everyone.
    I have a java programming project, a simple library system:
    User has to add books, borrow books, remove books, return books, clear library and exit the library.
    This is University...
Results 1 to 15 of 16