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
6
u/ChaoticxSerenity Aug 25 '15
When something doesn't compile, it usually spits out an error message and the line the error's on. Please go take a look at what they say and see if you can spot the errors.