package com.javarush.test.level00.lesson03.task01;

/* Live forever
Write a program that displays 5 times «I intend to live forever. So far, so good.». Each string should be on a new line.
*/
public class Solution
{
    public static void main(String[] args)
    {
    System.out.println("I intend to live forever.So far,so good ");
    System.out.println("I intend to live forever.So far,so good ");
    System.out.println("I intend to live forever.So far,so good ");
    System.out.println("I intend to live forever.So far,so good ");
    System.out.println("I intend to live forever.So far,so good ");
}

i have error: ✗ The program is not compiled. Look for the error. That's what the compiler printed: src/com/javarush/test/level00/lesson03/task01/Solution.java:15: error: reached end of file while parsing } ^ 1 error

asked 15 Jul, 14:35

genek's gravatar image

genek
11
accept rate: 0%

edited 15 Jul, 14:36


i found it. missing } ar the end

link

answered 15 Jul, 14:53

genek's gravatar image

genek
11
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3

Asked: 15 Jul, 14:35

Seen: 29 times

Last updated: 15 Jul, 14:53