Created
April 29, 2009 14:22
-
-
Save masanobuimai/103809 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 example; | |
public class HelloWorld { | |
public String greet() { return greet("English"); } | |
public String greet(String lang) { | |
String msg = "???"; | |
if (lang.equals("English")) msg = "Hello"; | |
if (lang.equals("French")) msg = "Bonjour"; | |
if (lang.equals("German")) msg = "Hallo"; | |
return msg; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment