HWJ3 - More string exercises:
Start with the file below
and use it to create the 4 methods described.
/**
* Write a description of class MoreStringMethods here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class MoreStringMethods
{
/**
* will find the length of a given word.
* then it will print: The word ______ has ___ characters. Obviously filling in blank with the approp info
*/
public void printLength(String word)
{
}
/**
* this method takes in a string and prints
* out the last letter of the string
*/
public void findLast(String word)
{
}
/**
* This method will takes in a string and puts a "-" after the 3rd character
*/
public void wordSplit(String word)
{
}
}
|