package com.example.as1;

import java.io.Serializable;


/*here is the class of items that represent every todoitems*/
public class TodoItem implements Serializable{

	private static final long serialVersionUID = 7571026170589588634L;
	private String todobody;
	private boolean checked=false;
	private int archived;
	
	TodoItem(String name,int number){
		this.todobody=name;
		this.archived=number;
	}
	public String getBody(){
		return this.todobody;
	}
	public boolean getChecked(){
		return this.checked;
	}
	public void setCheck(boolean check){
		this.checked=check;
	}

	public void archive(){
		this.archived=1;
	}
	public void unarchive(){
		this.archived=0;
	}
	public int getArchived(){
		return archived;
	}
	
}

@@ -290,31 +290,8 @@
 se;%0A
-%09private int archived;%0A
 %09%0A%09T
@@ -313,19 +313,8 @@
 name
-,int number
 )%7B%0A%09
@@ -338,32 +338,8 @@
 me;%0A
-%09%09this.archived=number;%0A
 %09%7D%0A%09
@@ -514,151 +514,8 @@
 %09%7D%0A%0A
-%09public void archive()%7B%0A%09%09this.archived=1;%0A%09%7D%0A%09public void unarchive()%7B%0A%09%09this.archived=0;%0A%09%7D%0A%09public int getArchived()%7B%0A%09%09return archived;%0A%09%7D%0A
 %09%0A%7D%0A

Update TodoItem.java