|
||
|
|||
|
hi i hope im posting in the right part, if not, please forgive me ill make sure to post in correct part next time then.
hi ive just started in my java class nad the teacher has required to change an input of "ThE bROwn Fox jumpS" into an output of "The Brown Fox Jumps" how do i make the first of every word capitalized when outputted?
|
|
|||
|
ok so what i exactly have to do is take a string input of unknown word length and create an output with all of the words having the first letter capitolized.
|
|
||||
|
Hello there, I guess this is the wrong forums as you're not really showing us any code which you believe is broken. However I shall try to give you a little tip on how to solve this one.
- Split the string on white space, this should give you an array of all the words in the sentence. - Loop through all the words and lower case them and make the first character upper case and print them out. Now that should get you started, its fairly easy and if you give it a shot and you still have problems, come back here and post some code and someone will point in the right direction again. If you dont know how to split the string or do loops, have a look at The Really Big Index // Json |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help making program | ixjaybeexi | Collections and Generics | 5 | 07-12-2009 03:36 AM |
| "java -version" doesn't display proper value. | goldest | Java Theory & Questions | 6 | 01-11-2009 07:48 PM |
| reading a sentence | lotus | File I/O & Other I/O Streams | 4 | 20-07-2009 01:29 PM |
| [ASK]making a map | donjuan | AWT / Java Swing | 3 | 15-05-2009 08:32 AM |
| Reading in a date and validating it with proper calendar regex | scottyadam | Java SE APIs | 1 | 01-03-2009 02:05 AM |
|
100 most searched terms
Search Cloud
|
| 2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java addactionlistener addactionlistener java convert double to integer java double format java double to integer in java double to integer java drag en drop programmeren java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double in java format double java get mouse position java java 2d arraylist java actionlistener java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming practice problems java send keystrokes to another application java two dimensional arraylist java.io.ioexception: premature eof java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton action jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics smack api two dimensional arraylist two dimensional arraylist java unable to sendviapost to url what is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? |