📄 task.java
字号:
/*
* Copyright 2005 Nokia. All rights reserved.
*/
package com.forum.nokia.taskmanager;
/**
* A structure to store a single task.
*
*/
public class Task
{
private int id;
private String description;
/**
* Basic constructor.
*
* @param id Id of the task.
* @param description Description of the task.
*/
public Task( int id, String description )
{
this.id = id;
this.description = description;
}
/**
* Getter for task id.
* @return Id of the task as integer.
*/
public int getId() { return id; }
/**
* Getter for task description.
* @return Description of the task as string.
*/
public String getDesc() { return description; }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -