Skip to content

Instantly share code, notes, and snippets.

@marklocklear
Created October 12, 2018 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marklocklear/2824709c5e342ed98b1af73ecfd9ef17 to your computer and use it in GitHub Desktop.
Save marklocklear/2824709c5e342ed98b1af73ecfd9ef17 to your computer and use it in GitHub Desktop.
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