This file contains 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
-server | |
-Xms1g | |
-XX:MetaspaceSize=1g | |
-XX:MaxMetaspaceSize=3g | |
-XX:NewRatio=3 | |
-Xss256m | |
-XX:+UseConcMarkSweepGC | |
-XX:+CMSParallelRemarkEnabled | |
-XX:ConcGCThreads=4 | |
-XX:ReservedCodeCacheSize=480m |
This file contains 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
import java.util.Collection; | |
import java.util.HashSet; | |
public class AlgoritmosDiversos { | |
public static final long MAX_SECRET = 1000000; | |
public static final long SECRET = (long) ((Math.random() * MAX_SECRET) + 1); | |
public static void main(String[] args) { | |
new LasVegas(SECRET).start(); |
This file contains 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 br.com.concretesolutions.desafio; | |
import java.util.ArrayList; | |
public class Pessoa { | |
public static final int MARGUERITA = 0; | |
public static final int QUATRO_QUEIJOS = 1; | |
public static final int ESCAROLA = 2; | |
public static final int PORTUGUESA = 3; |