aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39535
    
  27
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 - updated with new look and Ping home screen widget
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: 18101
    
  39

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: 36453
    
  15
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
 
Similar Threads
Populating <TABLE> using Ajax
Passing Vector elements to an array
Translation and language comparison
ArrayList Problem
Pick the odd man out