Update of /cvsroot/fb-contrib/fb-contrib/samples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3408/samples
Added Files:
NCMU_Sample.java
Log Message:
new NCMU detector - intial checkin
--- NEW FILE: NCMU_Sample.java ---
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
public class NCMU_Sample
{
public void test(Vector v, Hashtable ht)
{
if (ht.contains("test"))
{
Enumeration e = ht.elements();
if (e.equals(ht.keys()))
return;
}
v.addElement("test");
String s = (String)v.elementAt(0);
v.insertElementAt("test", 0);
v.removeAllElements();
v.removeElement("test");
v.removeElementAt(0);
v.setElementAt("test", 0);
}
}
|