CodeGym
Promotion
CodeGym University
Learning
Course
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Start learning now
  • All questions
ROBERT KOSS
Level 3
Panama City
  • 28.02.2019
  • 1362views
  • 3comments

can someone give me the code down below please and thank you

Question about the task Favorite poem
Java Syntax,  Level 1,  Lesson 8
Resolved
0
Comments (3)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Thomas
Level 11 , Scottsdale, United States
15 May 2019, 00:18solution
// Plug in your favorite poetry ; Make sure you get your words count over Required in challenge !
// Tribute to Cat in the hat

String fish1 = "'put me down!' said the fish.";
String noFun = "'this is no fun at all!";
String fish2 = "put me down!' said the fish.";
String noFall = "'i do NOT wish to fall!'";
String noFear = "'have no fear!' said the cat.";
String noFall2 = "'i will not let you fall. i will hold you up high";
String theRest = "as i stand on a ball. with a book one one hand! and a cup on my hat!";
String theRest2 = "but that is not ALL i can do! said the cat...";


    System.out.println("My favorite poem:");
    System.out.println(fish1);
    System.out.println(noFun);
    System.out.println(fish2);
    System.out.println(noFall);
    System.out.println(noFear);
+2
ROBERT KOSS
Level 3 , Panama City, United States
1 March 2019, 18:56
ive got it now thanks.
0
Khurram
Level 16 , Lahore, Pakistan
1 March 2019, 17:00
just display 4 lines of any poem (or any text for that matter) using println after the "My favorite poem" line
0
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning and Java developer’s career.
Follow us
Interface language
Programmers Are Made, Not Born © 2023 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2023 CodeGym
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.