r/javahelp • u/Grolbnik • Aug 25 '15
what are the errors in this?
public class WorkingWeek {
public static void main (String[] args){
// setting the values
double hoursPerDay = 7.5;
int workdaysWeek = 5;
// calculating the total amout on wokring hours per week
double HoursPerWeek = HoursPerDay * WorkdaysWeek ;
// the results
System.out.println HoursPerDay (" workingHours ") +
DaysWeek + (" DaysWeek ") +
HoursWeek + (" HoursWeek ") {
}}
using drjava- and how to make it calculate/Write how many hours it is in 4 weeks/a month?
thanks!
0
Upvotes
7
u/nutrecht Lead Software Engineer / EU / 20+ YXP Aug 25 '15
vars are case sensitive. HoursPerDay is not the same as hoursPerDay.
Your System.out.printn() call is completely wrong. Please refer to whatever learning material you have because you haven't been paying attention.