This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 41042
    
  43
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: 18498
    
  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: 37890
    
  22
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Numerology
 
Similar Threads
Passing Vector elements to an array
ArrayList Problem
Populating <TABLE> using Ajax
Pick the odd man out
Translation and language comparison