File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Numerology

 
unna muthiah
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
unna muthiah
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is simillar.....i have da same program over here.but i keep gettin some mistake.
 
unna muthiah
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Campbell Ritchie
Sheriff
Pie
Posts: 47299
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic