This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alexchiri; | |
import com.alexchiri.bank.Bank; | |
import com.alexchiri.bank.MoneyBag; | |
import com.alexchiri.robber.Heist; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alexchiri.robber; | |
import com.alexchiri.bank.Bank; | |
import java.util.Arrays; | |
import java.util.Random; | |
import java.util.concurrent.ForkJoinPool; | |
import java.util.concurrent.RecursiveAction; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alexchiri.bank; | |
import java.util.List; | |
import java.util.UUID; | |
import java.util.concurrent.ConcurrentHashMap; | |
/** | |
* Alexandru Chiritescu | |
* 13-1-13 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alexchiri.bank; | |
import java.util.List; | |
/** | |
* Alexandru Chiritescu | |
* 13-1-13 | |
*/ | |
public class Bank { | |
private Safe safe; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Let's see what crops gets the Farmer in the next 5 years! | |
The random number that decides what kind of weather our Farmer has is: -2142844333 | |
It's gonna be a WetWeather! | |
In year 1 the Farmer got the following Crops: | |
Rice in HIGH quantity. | |
In year 2 the Farmer got the following Crops: | |
Rice in HIGH quantity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Let's see what crops gets the Farmer in the next 5 years! | |
The random number that decides what kind of weather our Farmer has is: 1077820169 | |
It's gonna be a WetWeather! | |
In year 1 the Farmer got the following Crops: | |
Rice in HIGH quantity. | |
The random number that decides what kind of weather our Farmer has is: 20363813 | |
It's gonna be a WetWeather! | |
In year 2 the Farmer got the following Crops: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Company { | |
private Employee employee; | |
public Company() { | |
employee = new Employee(); | |
} | |
public void makeMoney() { | |
employee.doWork(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Company { | |
private Employee employee; | |
public Company(Employee employee) { | |
this.employee = employee; | |
} | |
public void makeMoney() { | |
employee.doWork(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
Title: ${1:title} | |
Date: ${2:date} | |
Tags: | |
Published: false | |
]]></content> | |
<tabTrigger>header</tabTrigger> | |
<scope>text.html.markdown</scope> | |
</snippet> |
NewerOlder