File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to make a number lower case? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make a number lower case?" Watch "How to make a number lower case?" New topic
Author

How to make a number lower case?

ananthamiyer ananthamiyer
Greenhorn

Joined: Jan 28, 2004
Posts: 3
Write a program to convert uppercase numbers to lowercase numbers. You may use any part of the Java API but may not team together with other students and turn in group work. You must write the class and provide at least 5 methods but no more than 8 methods to accomplish this task. Your program must be able to accept arguments from the command line
public class MakeLowerCaseNumber
{
public MakeLowerCaseNumber(String[] args)
{
int i;
for (i =0; i < args.length; i++)
{
makeLower(args);
}
}
private void makeLower(String argument)
{
System.out.print("Making " + argument + " into a lowercase number ");
}
public static void main(String[] args)
{
MakeLowerCaseNumber makeLowerCaseNumber = new MakeLowerCaseNumber(args);
}
}

I am lost. I have written this much. It doesn't make my number lowercase. Can someone show me what to do?
ananthamiyer ananthamiyer
Greenhorn

Joined: Jan 28, 2004
Posts: 3
Please some one help me fast.It is my school assignment and i need help urgently
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Can you provide for us the definition of a "lower-case number?" The Arabic digits used in much of the world don't have case.


[Jess in Action][AskingGoodQuestions]
ananthamiyer ananthamiyer
Greenhorn

Joined: Jan 28, 2004
Posts: 3
I suppose they are Natural Numbers
All i know is that i need to submit this assignment hook or crook or i may get demoted.So to the Java Gurus please finish this assignment for me.
Or teacher does not seem to understand and she is very keen on everybody submitting this assignment
So kindly help me
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
So to the Java Gurus please finish this assignment for me.

Excuse me, but I don't think you will get a big response from the users of this board like that. If you have a specific question, we will be glad to help.
I don't know what a lower case number is, but could it mean that the numbers are spelled out for you from the command line? Like maybe:
java ConvertNumber FIVE
What other part of the program is giving you problems?
Antoine Waugh
Ranch Hand

Joined: Jan 24, 2004
Posts: 66
all your program does at current is call a method makeLower , for every index in an array..
What exactly is required? do you want
'THREE' to become 'three'
or
' 1 2 3 ' to become '3 2 1' ?
remember we are here to help, but not just simply complete your assignment for you. if its for the Conversion from THREE to three then this should help:


B.C.S.T, SCJP, Hero
Gabriel White
Ranch Hand

Joined: Mar 02, 2003
Posts: 233
or simply:
System.out.println(number);
System.out.println(number.toLowerCase);
[ January 28, 2004: Message edited by: Steve Wysocki ]
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
All of which makes me wonder if that is what is needed, since there should be at least 5 methods!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make a number lower case?