first BlueJ lab

StringTest.java 533B

123456789101112131415161718192021222324252627
  1. /**
  2. * Write a description of class Test here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class StringTest
  8. {
  9. private String value;
  10. public StringTest(String value)
  11. {
  12. this.value = value;
  13. }
  14. public String vowelRemoved()
  15. {
  16. StringBuilder builder = new StringBuilder();
  17. char[] vowels = {'a', 'e', 'i', 'o', 'u'};
  18. for (int i = 0; i < value.length(); i++){
  19. System.out.println(" char at i is " + value.charAt(i));
  20. }
  21. }