Junit test bluej [closed]
- by user1721929
Can someone make a junit test of this?
public class PersonName {
int NumberNames(String wholename)
{ // store the name passed in to the method
String testname=wholename;
// initialize number of names found
int numnames=0;
// on each iteration remove one name
while(testname.length()>numnames)
{ // take the "white…