Created
October 12, 2018 17:37
-
-
Save marklocklear/2824709c5e342ed98b1af73ecfd9ef17 to your computer and use it in GitHub Desktop.
This file contains 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 blarg; | |
/** | |
* | |
* @author marklocklear | |
*/ | |
public class Blarg { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { | |
// TODO code application logic here | |
System.out.print(UserInput.DISPLAY_TEXT); | |
System.out.print("\n"); | |
System.out.print(UserInput.getMoreRandomText("this comes from the main program")); | |
} | |
} | |
package blarg; | |
/** | |
* | |
* @author marklocklear | |
*/ | |
public class UserInput { | |
public static final String DISPLAY_TEXT = "Here is some text..."; | |
public static String getRandomText () { | |
return DISPLAY_TEXT; | |
} | |
public static String getMoreRandomText (String text) { | |
String combinedText = text + DISPLAY_TEXT; | |
return combinedText; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment