• Post Reply Bookmark Topic Watch Topic
  • New Topic

on i/o

 
Renuka Prasad prasad
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the contents of a text file (input.txt). The words should be rearranged and written to output.txt.
First find the number of occurances of each word. Then write to the file in the ascending order of the word text.
If any word occurs prime number of times, then reverse the strings and write it to the file.
Also print the words that contain non-repeating letters to the console.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where's your code?
 
Renuka Prasad prasad
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tried in many simplified ways but didn't came over an exclusive and accurate code for the above program...so please could anyone build the code...that would be a great help.
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, sorry, this is NotACodeMill (<== click on that link and read what it points to). We prefer that you ShowSomeEffort (<== that one too), in other words post some code and ask a question about the problem you're having with it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!