Convert ArrayList into 2D array containing varying lengths of arrays

Welcome to a world with Java 8! It only took me all night with no sleep to learn what was needed to write this one freaking line of code. I’m sure it is already out there somewhere but I couldn’t find it. So I’m sharing my hours and hours of research, enjoy. Woot! Assuming: ArrayList<ArrayList<String>> … Read more

What is the difference between CHARACTER VARYING and VARCHAR in PostgreSQL?

VARCHAR is an alias for CHARACTER VARYING, so no difference, see documentation 🙂 The notations varchar(n) and char(n) are aliases for character varying(n) and character(n), respectively. character without length specifier is equivalent to character(1). If character varying is used without length specifier, the type accepts strings of any size. The latter is a PostgreSQL extension. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)