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
// Abra o arquivo "InstallService.bat" no diretório C:\apache-activemq-5.5.0\bin\win32 e edite a propriedade | |
// "conf" | |
:conf | |
set _WRAPPER_CONF="%ACTIVEMQ_HOME%\bin\win32\wrapper.conf" | |
set _ACTIVEMQ_HOME="set.ACTIVEMQ_HOME=%ACTIVEMQ_HOME%" | |
set _ACTIVEMQ_BASE="set.ACTIVEMQ_BASE=%ACTIVEMQ_BASE%" | |
set _JAVA_HOME="set.JAVA_HOME=%JAVA_HOME%" |
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 desafiometa; | |
public class Questão04 { | |
static int arr[] = new int[] { 0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1 }; | |
static int capAgua(int n) { | |
int esquerda[] = new int[n]; | |
int direita[] = new int[n]; |
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 desafiometa; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Scanner; | |
public class Questao03 { | |
public static void main(String[] args) { | |
ArrayList<Integer> input = new ArrayList<Integer>(); | |
int diaCompra = 0; |
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 desafiometa; | |
import java.util.Scanner; | |
import java.util.Stack; | |
public class Questao02 { | |
public static void main(String[] args) { | |
try (Scanner scr = new Scanner(System.in)) { | |
System.out.print("Digite os Brackets: "); |
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 desafiometa; | |
import java.util.*; | |
public class Questao01 { | |
public static void main(String[] args) { | |
Alvo(); | |
} | |
private static void Alvo() { |