Going national

  • 5
  • Locked
  • Homework
Once diners get over their initial reservations about the proper color of breakfast foods, they fall in love with green eggs and ham. Sam-I-Am has big plans to open a national chain of restaurants featuring his signature dish. He'll launch the Green Eggs and Ham restaurant chain as soon as he can find suppliers of properly colored eggs. We will write a program that replaces the text "green eggs and ham" with "Green Eggs And Ham".
You can't complete this task, because you're not signed in.
Comments(5)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
SteveLevel 9 , Denver
6 August, 18:08
I hope this isnt breaking the rules but this is key to pass the last task String[] words = s.trim().split("\\s+");
Michał KwaśnyLevel 22 , Krakow
27 June, 15:19
Can someone point out what is wrong with this code? It works perfectly.
shabarish kumarLevel 15 , Hyderabad
22 June, 05:50
its failing by saying that my output has extra spaces. But i have not found such that. Please help me
Ed MaphisLevel 20 , Painesville
25 May, 19:59
Internet research helped solve this one.
RAGHU VAMSILevel 17 , HYDERABAD
16 June, 16:08
yes!