I created a utility file named AntoniosUtilityFile
public
String reverseThisString(String toReverse)
{
return new StringBuffer(toReverse).reverse().toString();
}
}
}
I want to be able to click on a button called reverse in my main class
and it will access the information in my utility file.
public class Memo
{
public void actionPerformed(ActionEvent e)
{
if (actionCommand.equals("Reverse"))
"do something here to acces AntoniosUtilityFile"
"which will reverse the text once the reverse "
"button is clicked."