User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 397,709 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,389 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 1177 | Replies: 3
Reply
Join Date: Mar 2007
Posts: 1
Reputation: TheAdjustment is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
TheAdjustment TheAdjustment is offline Offline
Newbie Poster

Help uppercase and lowercase HELP!

  #1  
Mar 28th, 2007
I'm having major issues trying to do the following: Write a program that reads in a line of text and then outputs that line of text first in all uppercase letters and then in all lowercase letters.

If anyone can help me with that I'd greatly apprciate it.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2005
Posts: 72
Reputation: Cudmore is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 5
Cudmore's Avatar
Cudmore Cudmore is offline Offline
Junior Poster in Training

Re: uppercase and lowercase HELP!

  #2  
Mar 28th, 2007
Have you researched this?
Perhaps, and especially for questions such as yours, you should check Google or some other appropriate search engine for results.

You seem to know the words "Java" and "Uppercase" well enough.
Take a look at this - be amazed:

http://www.google.ca/search?hl=en&q=...G=Search&meta=

And can you believe that it was the first result?
synchronized (theWorld) { System.out.println ("It's all mine..."); }
How many people have code in their Sigs?
Reply With Quote  
Join Date: Jan 2007
Location: Earth....
Posts: 39
Reputation: MacGyver Orca is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
MacGyver Orca's Avatar
MacGyver Orca MacGyver Orca is offline Offline
Light Poster

Re: uppercase and lowercase HELP!

  #3  
Mar 28th, 2007
Originally Posted by Cudmore View Post
Have you researched this?

I second this sentiment, the problem you are asking is one that can be searched for on google quite quickly; however, should you have any more complex problems, or don't understand how to use the API then please feel free to ask.
Reply With Quote  
Join Date: Feb 2006
Posts: 1,363
Reputation: masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough 
Rep Power: 8
Solved Threads: 117
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Virtuoso

Re: uppercase and lowercase HELP!

  #4  
Mar 29th, 2007
Just read the API for String. Once you have read the input there are two methods in String that do exactly what you want.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Java Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 1:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC