Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Numerology Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Numerology" Watch "Numerology" New topic
Author

Numerology

unna muthiah
Greenhorn

Joined: Jun 12, 2009
Posts: 3
i would like a simple program for the following question.
the values of a=1,b=4,c=3...so on that each alphabet has some assigned random number.
if i type in the word krishna,i want the value of that word.
i want it first only the whole value and then the value of the words with only vowels and the value of the word without vowels.
thank you.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
Welcome to JavaRanch.

What do you have so far? If you haven't started yet, what ideas have you had, and where are you stuck implementing them?

You may get some inspiration in this suspiciously similar recent topic.


Ping & DNS - my free Android networking tools app
unna muthiah
Greenhorn

Joined: Jun 12, 2009
Posts: 3
it is simillar.....i have da same program over here.but i keep gettin some mistake.
unna muthiah
Greenhorn

Joined: Jun 12, 2009
Posts: 3
can i use arrays
one for the char
and one for integers
so if anything is equal to the character
i will just put da value of integer
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18747
    
  40

unna muthiah wrote:can i use arrays
one for the char
and one for integers
so if anything is equal to the character
i will just put da value of integer


I don't see why not -- give it a try and let us know how it worked.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
unna muthiah wrote:can i use arrays
one for the char
and one for integers
so if anything is equal to the character
i will just put da value of integer
Yes, but there is a much easier way to do it using only one array. See the other thread for a further hint.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Numerology