Allow me to briefly explain my issue: So I began an intro to java class earlier in the semester and I had trouble understanding the fundamentals of Java. Going to see my professor in person proved useful, however now with the university on lockdown, I don't know where else to turn to help me with my code.
Despite this, I still have assignments to do and I have no idea on how to do them because classes have been canceled! It's a mess. I have the assignment on hand however I don't want to cheat. I guess my question is, where should I go to learn Java? YouTube has been confusing, CodeAcademy doesn't help much, I don't know here to turn. For those who are willing to help me, my question for my current assignment is this: What must I include in my getData class? The assignment is to make a grocery list for a cashier. Here is the test class currently:
String name = GetData.getWord(“Enter name of item”);
double price = GetData.getDouble(“Enter price of item”);
c.add(name, price);
name = GetData.getWord(“Enter name of item”);
price = GetData.getDouble(“Enter price of item”);
c.add(name, price);
// Add a two more entries of your own
// Now average the price of the items
c.average();
// Make payment
double amount = GetData.getDouble(“Enter amount of money for payment”);
c.tendered(amount); // For example twenty dollars were tendered
c.makeChange();
generateReceipt(c);
}
static void generateReceipt(Cahier c)
If anyone can help, that would be great. Otherwise, where should I go to further practice Java and improve myself in this coding language? Thanks!