Skip to content

Instantly share code, notes, and snippets.

View GravelCZ's full-sized avatar
🤔

GravelCZ

🤔
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gravelcz on github.
  • I am gravelczlp (https://keybase.io/gravelczlp) on keybase.
  • I have a public key ASA3lb60H_cpySELt_qooLcCAQkfuhqR28JGzI9VSKd--Ao

To claim this, I am signing this object:

public class Main2 {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
new Main2().createAndShowGUI();
}
});
/*
* Class By GravelCZLP at 19. 5. 2017
*/
package cz.GravelCZLP.Breakpoint.Updater;
import java.util.Arrays;
import java.util.List;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
@GravelCZ
GravelCZ / randomKeyGen.java
Last active October 6, 2016 15:16
random key generator in java
private static final char[] list = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
private static final Random r = new Random();
private static int length = 10; // change to whatever length you want
private static char randChar() {
return list[r.nextInt(list.length)];
}
public static String rKey() {
StringBuilder b = new StringBuilder();