The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


please help me with this simple...

Posted by amhere on April 21, 2001 at 11:07 PM

took introduction to java this semester, but unfortunatly i missed some classes. now i'm sitting here and have some programs due monday, but i don't now where to start! please, please help me!

here's what i need to do:

Write a Java program [utilizing or] that counts the individual numbers of each vowel ('a', 'e', 'i', 'o', 'u') in a user-input string (don't forget that the input may be upper- or lower-case).

2. (

Write a Java program [ utilizing or] that tests whether a user-input string is a palindrome, which is a string such as "otto" that reads the same in both directions.

3. Write a method
String numToWord(String s)
that takes a string argument representing an integer between 0 an 99999 and return the word equivalent. For example, for s="423", the method would return the String "four hundred twenty three".

4. Write the body of the method
boolean isSum(int x, int y, int z)
that returns true if any one of x, y, and z is the sum of the other two and returns false if they are nor.

Provide test (main) methods to see that the methods perform as described.

i'll apriciate any kind of help,


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us