Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialvincent batteast
51,094 PointsImagine you are writing a task management application that allows a user to track a list of tasks to complete. While tes
Bummer! It doesn't look like the correct change was made. Think about the typical way you would access a private field from another class.
package com.teamtreehouse.todo.model;
import java.time.LocalDateTime;
@Controller
public class Task {
private String description;
private LocalDateTime dueDateTime;
private boolean complete;
@Autowired
public Task(String description, LocalDateTime dueDateTime) {
this.description = description;
this.dueDateTime = dueDateTime;
this.complete = false;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public LocalDateTime getDueDateTime() {
return dueDateTime;
}
public void setDueDateTime(LocalDateTime dueDateTime) {
this.dueDateTime = dueDateTime;
}
public void setComplete(boolean complete) {
this.complete = complete;
}
public bool isComplete(){
return complete;
}
}
Clinton Johnson
28,714 PointsClinton Johnson
28,714 Pointsvincent batteast Hey Vincent, The problem is you have to fix your public bool isComplete() and change bool to boolean