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 :)...
Type: Posts; User: ziplague
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 :)...
I fixed the out of bounds exception.
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...
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...
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"...
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...
@Tjstretch: Wow, cool, thank you for the fix :)
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...
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...
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? ...
Alright, i'm reading the article right now, and i will address this issue today, thanks.
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...
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...
"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...
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...