Created
February 15, 2016 15:01
-
-
Save alexejVasko/ce70873eeebbfb443d5d 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 method; | |
import java.util.Scanner; | |
public class MethodHi { | |
public static void main(String[] args) { | |
hello(); | |
} | |
static void hello(){ | |
Scanner name = new Scanner(System.in); | |
String main = name.nextLine(); | |
System.out.println("Hello "+ main); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Согласно заданию метод должен иметь параметры. И никакого сканера не применять.