Created
November 13, 2014 20:28
-
-
Save alexshavelev/3d2f94852e715615a4ec to your computer and use it in GitHub Desktop.
level13.lesson04.task02;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.test.level13.lesson04.task02; | |
/* Исправление кода | |
Исправить код так, чтобы программа выполнялась и выводила "Я переводчик с английского". | |
Метод main менять нельзя! | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
Translator translator = new Translator(); | |
System.out.println(translator.translate()); | |
} | |
public static class Translator | |
{ | |
public String translate() | |
{ | |
return "Я переводчик с английского"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment