-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.java
More file actions
46 lines (35 loc) · 1.02 KB
/
Copy pathApp.java
File metadata and controls
46 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package edu.nyu.cs.git_practice_run;
public class App {
/**
* Concatenates two strings together and returns the result.
*
* @param x a String
* @param y another String
* @returns The concatenation of x and y
*/
public static String foo(String x, String y) {
return x + " " + y;
}
/**
* @returns The String, "Hello world!"
*/
public static String bar() {
return "Hello world!";
}
/**
* Prints out the String, "Hello world!"
*/
public static void baz() {
System.out.println("Hello world!");
}
/**
* The main function is automatically called first in a Java program.
* You will complete this function.
*
* @param args An array of any command-line arguments. The main function always has to include this, even if not used.
* @throws Exception The main function always has to include this to handle crashing programs.
*/
public static void main(String[] args) throws Exception {
// complete this function according to the instructions.
}
}