Changes

Jump to: navigation, search

Teams Winter 2011/team6/lab2

243 bytes added, 13:46, 12 April 2011
no edit summary
import java.util.Calendar;
import java.util.Date;
import cs.dps914.osgi.lab.chatinterface.IMessage;
public class SimpleMessage implements IMessage {
 
private String source;
private Date time; private String message; public SimpleMessage(String src,String msg) { setSource(src); setTime(Calendar.getInstance().getTime()); setMessage(msg); } public void setSource(String src) { if (src!=null) { source=src; } else { source=""; } } public String getSource() { return source; }
public void setTime(Date time) {
1
edit

Navigation menu