Pavan Kumar Dittakavi wrote:You are almost there. Just reverse the string that you have got into the 'data' string object and write it to the file.
"far," should be revresed like "raf," not ",raf"
Do not wait to strike till the iron is hot; but make it hot by striking....
Alex Theedom. Author of: Java EE Video Courses (JAX-RS, Bean Validation, Websocket, JSON-P and much more), Java EE 8: Only What's New
and Professional Java EE Design Patterns. Blogger at readlearncode.com. Twitter @alextheedom
Alex Theedom wrote:I hope this helps.
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
Joanne
Do not wait to strike till the iron is hot; but make it hot by striking....
Good grief! There are at least 4 errors in that line alone!Manoj Kumar Jain wrote: . . . . . .
brando brandido wrote:i want to use tokenizer
please....
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
brando brandido wrote:yes but our teacher wants us to use stringtokenizer.
so i must use it.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
AMiT
Campbell Ritchie wrote:
Good grief! There are at least 4 errors in that line alone!Manoj Kumar Jain wrote: . . . . . .
1: It won’t compile.
Do not wait to strike till the iron is hot; but make it hot by striking....
Do not wait to strike till the iron is hot; but make it hot by striking....
Manoj Kumar Jain wrote:oh got it ! Actually I type that line myself and completed it by editing two times.... but code was working fine....
Amit Goda wrote:A possible way according to me is, split contents of variable data at each whitespace character. You'll get an Array. And now traverse through the each word in array and use charAt(int index) method of String to reverse the word and store it in a String. Similarly append all the words and your output will be ready. .
Hope it helps!
Do not wait to strike till the iron is hot; but make it hot by striking....
Jeff Verdegan wrote:
Manoj Kumar Jain wrote:oh got it ! Actually I type that line myself and completed it by editing two times.... but code was working fine....
Did you notice his other points, that had nothing to do with whether it compiles or runs?
Do not wait to strike till the iron is hot; but make it hot by striking....
Manoj Kumar Jain wrote:Yes Jeff I noticed others points as well. He is quite correct and these points should be imbibed..
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
Manoj Kumar Jain wrote:Yes Jeff I noticed others points as well. He is quite correct and these points should be imbibed..
I thought it was pints that should be imbibed.
Winston
Do not wait to strike till the iron is hot; but make it hot by striking....
Manoj Kumar Jain wrote:
Winston Gutkowski wrote:
Manoj Kumar Jain wrote:Yes Jeff I noticed others points as well. He is quite correct and these points should be imbibed..
I thought it was pints that should be imbibed.
Winston
sorry, couldn't get you ?
Ryan Alfeche wrote:hope this one will help..
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |