Is it a bad practice if I put the variables types in their identifiers. Like this:
String nameString = "Sergio"
String birthdayString = "January 2, 1990";
DateFormat dateFormat = new SimpleDateFormat("MMMM d, yyyy", Locale.ENGLISH);
Date birthdayDate = dateFormat.parse(birthdayString);
String filePathString = "/etc/passwd"
final File PASSWD_FILE = new File(filePathString);
I find it useful to figure out at a glance what type a variable is, but I can be missing something and doing something stupid. Can you give me some advice? Sorry for my bad english.
AMERICAN_DATE_FORMAT(and that one is actually provided in the JDK, at least for Java 8 date/time).