Last active
December 9, 2015 09:42
-
-
Save Yur-ok/4c280b22854e4ed287b4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Lesson2.KeyPoin1; | |
| /** | |
| * Created by Юрий on 08.12.2015. | |
| */ | |
| public class HelloMethod { | |
| public static void main(String[] args) { | |
| hello("Yurok"); | |
| hello(777); | |
| } | |
| static void hello(String name){ | |
| System.out.println("Hello " + name); | |
| } | |
| static void hello(int name){ | |
| System.out.println("Hello " + name); | |
| } | |
| } |
Author
Для этого задания, сломать программу означает ввести строку с различными значениями. Например, null или ""
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Здесь решил предусмотреть возможность ввода целого числа.
Изходя из рекоммендаций озвученных на прошлых уроках, и в видео от Олега "Как решать задания". Где говорилось что программу надо попробовать попытаться сломать введя некорректные данные.