Currently i'm having an issue in that put a white space in the Item Desc will end up crashing the code due to it being recognised as a delimiter. Is there any way to override this so that I can store sentences in the array?
These are methods that are needed in the class.
int index;
int endDate;
Item item;
System.out.println("Please enter the item name ");
String itemName = sc.next();
System.out.println("Please enter the item description: ");
String itemDesc = sc.next();
database.items.add(new Item(itemName, itemDesc));
index = database.itemIndex(itemName);
item = database.items.get(index);