Skip to content

Instantly share code, notes, and snippets.

@athiththan11
Created February 14, 2019 08:19
Show Gist options
  • Save athiththan11/693890ed126edbad62c9cbe3af96c0a4 to your computer and use it in GitHub Desktop.
Save athiththan11/693890ed126edbad62c9cbe3af96c0a4 to your computer and use it in GitHub Desktop.
`static` keyword usage on methods
public class User {
List<String< convertedValue = Utility.convertStringToSomething("an input string here");
}
public class Utility {
public static List<String> convertStringToSomething (String input) {
// body implementation to convert a String value to a List of String
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment