Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make a number lower case?

 
ananthamiyer ananthamiyer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please some one help me fast.It is my school assignment and i need help urgently
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
ananthamiyer ananthamiyer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Gabriel White
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or simply:
System.out.println(number);
System.out.println(number.toLowerCase);
[ January 28, 2004: Message edited by: Steve Wysocki ]
 
Timmy Marks
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All of which makes me wonder if that is what is needed, since there should be at least 5 methods!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic