fork download
  1. import com.google.common.base.Charsets;
  2. import com.google.common.hash.Hashing;
  3. import com.google.common.collect.Lists;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6. import java.text.MessageFormat;
  7.  
  8. /**
  9.  * Use this class to change the password stored in the databae from one that is
  10.  * visible as plain text (a security threat) to one that is "hashed". Hashing is
  11.  * a one-way encryption system. Hashes can be generated but cannot be reverse
  12.  * engineered, which is why they are called one-way hashes. Use this class to
  13.  * generate a hashed password, based on the original plain text version, using
  14.  * SHA-256, which is a superior hashing algorithm. Then copy the output from the
  15.  * console and use it to replace what you have in your database.
  16.  *
  17.  * @author jlombardo
  18.  */
  19. public class Main {
  20. public static void main(String[] args) {
  21. List<Object> params = new ArrayList<>();
  22. params.add(1);
  23. params.add(2);
  24. params.add(3);
  25.  
  26. Object p2 = Lists.partition(params, 4);
  27. System.out.println(p2);
  28. }
  29. }
Success #stdin #stdout 0.13s 55300KB
stdin
Standard input is empty
stdout
[[1, 2, 3]]