package ru.apetrov.start;

import ru.apetrov.models.*;

public class StartUI{
	
	public static void main(String[] args){
		
		Tracker tracker = new Tracker();
		tracker.add(new Task("first task", "first desc"));
		tracker.add(new Task("second task", "second desc")); 
		for (Item item : tracker.getAll()){
			System.out.println(item.getName());
		}
	}
}
@@ -156,197 +156,2029 @@
 ();%0A
-%09%09tracker.add(new Task(%22first task%22, %22first desc%22));%0A%09%09tracker.add(new Task(%22second task%22, %22second desc%22)); %0A%09%09for (Item item : tracker.getAll())%7B%0A%09%09%09System.out.println(item.getName());%0A%09%09%7D
+%0A        %09Item item1 = new Task(%22first task%22, %22first desc%22);%0A        %09Item item2 = new Task(%22second task%22, %22second desc%22);%0A        %09Item item3 = new Task(%22three task%22, %22three desc%22);%0A        %09Item item4 = new Task(%22four task%22, %22four desc%22);%0A        %09Item item5 = new Task(%22five task%22, %22five desc%22);%0A        %09Item item6 = new Task(%22six item%22, %22six desc%22);%0A%0A%09%09tracker.add(item1);%0A        %09tracker.add(item2);%0A        %09tracker.add(item3);%0A        %09tracker.add(item4);%0A        %09tracker.add(item5);%0A        %09tracker.add(item6);%0A%0A        %09System.out.println(%22----------------------get all---------------------------------%22);%0A%09%09%0A        %09for (Item item : tracker.getAll())%7B%0A            %09%09System.out.println(item.getName());%0A        %09%7D%0A%0A        %09System.out.println(%22-----------------------find by name--------------------------------%22);%0A%09%09%0A        %09for (Item item : tracker.findByName(%22three task%22)) %7B%0A            %09%09System.out.println(item.getName());%0A       %09 %09%7D%0A%0A        %09System.out.println(%22-----------------------find by description--------------------------------%22);%0A%0A        %09for (Item item : tracker.findByDesc(%22four desc%22)) %7B%0A            %09%09System.out.println(item.getName());%0A        %09%7D%0A%0A        %09System.out.println(%22--------------------------del item-----------------------------%22);%0A%0A        %09tracker.remove(item3);%0A%0A        %09for (Item item : tracker.getAll())%7B%0A            %09%09System.out.println(item.getName());%0A        %09%7D%0A%0A        %09System.out.println(%22----------------------edit item---------------------------------%22);%0A%0A        %09Item editItem = new Task(%22editItem task%22, %22editItem desk%22);%0A        %09editItem.setId(item2.getId());%0A        %09tracker.edit(editItem);%0A        %09for (Item item : tracker.getAll())%7B%0A            %09%09System.out.println(item.getName());%0A        %09%7D%0A%0A        %09System.out.println(%22---------------add comment------------------------%22);%0A%0A        %09Comment comment = new Comment(%22This is a comment%22);%0A        %09tracker.addComment(item6, comment);%0A        %09System.out.println(item6.getComment().getValue());
 %0A%09%7D%0A

add StartUI