mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
First iteration of support for Java
This commit is contained in:
committed by
Matthew Gilliard
parent
82d612a754
commit
cd0b68dfb7
13
examples/tutorial/hello/java/Func.java
Normal file
13
examples/tutorial/hello/java/Func.java
Normal file
@@ -0,0 +1,13 @@
|
||||
import java.io.*;
|
||||
|
||||
public class Func {
|
||||
public static void main(String[] args) throws IOException {
|
||||
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
|
||||
|
||||
String name = bufferedReader.readLine();
|
||||
name = (name == null) ? "world" : name;
|
||||
|
||||
System.out.println("Hello, " + name + "!");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user