Skip to content

Instantly share code, notes, and snippets.

View tkfx's full-sized avatar

Alex Zhitnitsky tkfx

View GitHub Profile
if( user.isCustomer() ) {
}
if( user.isCustomer() && account.equals(id) ) {
...
}
if ( user.isCustomer() &&
account.equals(id) ) {
...
}
int methodId = 2;
Object[] root = new Object[9];
List<Object> valCjrukeawxor = new LinkedList<Object>();
Set<Object> valRvshucjormy = new HashSet<Object>();
boolean valSboiogeldpb = true;
valRvshucjormy.add(valSboiogeldpb);
boolean valPjvoucyfprv = true;
@tkfx
tkfx / jshell
Created July 27, 2017 23:54
jshell
-> 2 + 2
| Expression value is: 4
|     assigned to temporary variable $1 of type int
public static void main(String[] args) throws Exception {
Process proc = Runtime.getRuntime().exec(new String[] {
"/bin/sh",
"-c",
"echo $PPID"
});
if (proc.waitFor() == 0) {
InputStream in = proc.getInputStream();
int available = in.available();
System.out.println("Your pid is " + Process.getCurrentPid());