package RBLAsp;
public class rblSimple
{ // Variables
private String sText = null ;
// set message texte
public void setText(String s) {
if (s != null)
sText = new String (s) ;
return ;
}
// get message texte (changed)
public String getText(int k) {
String s = "" ;
if (sText != null) {
s = "<UL>" ;
for (int i = 0; i < k; i++)
s = s + "<LI>num " + i + " : " + sText + "\n" ;
s = s + "</UL>" ;
}
else
s = "Empty String" ;
return s ;
}
}
|