Skip to content

Instantly share code, notes, and snippets.

@wbars
wbars / DataStructure.java
Created April 14, 2015 11:07
java-obfuscation
public class DataStructure {
// Create an array
private final static int SIZE = 15;
private int[] arrayOfInts = new int[SIZE];
public DataStructure() {
// fill the array with ascending integer values
for (int i = 0; i < SIZE; i++) {
arrayOfInts[i] = i;
@wbars
wbars / main.java
Created April 13, 2015 11:31
java-example
public class Main
{
public void main()
{
Test test = new Test();
Test.Inner inner = test.new Inner();
inner.testMethod();
}
}
@wbars
wbars / Animal.java
Last active August 29, 2015 14:19
Соблюдение контракта
package com.example.helloworld;
/**
* Created by wannabe on 12.04.15.
*/
interface Animal
{
int getLegsCount();
animal move();
}