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 Main { | |
public static void main(String[] args) { | |
Stack newStack = new Stack(); | |
Stack clone = new Stack(); | |
//populate a stack | |
for (int i = 0; i < 10; i++) { | |
newStack.push(i); | |
} | |
//copy from one stack to another | |
copyStack(newStack, clone); |
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 br.edu.ifpr; | |
import java.util.Scanner; | |
/** | |
* @author Wagner Bonfim | |
*/ | |
public class Main { | |
public static void main(String[] args) { | |
Scanner leitor = new Scanner(System.in); | |
int linha = -1, coluna = -1, numeroEscolhido = -1, nivelDificuldade = -1; | |
boolean keepAsking = true; //garante que os numeros digitados sejam válidos |
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
class GFG { | |
static int M = 10; //?? | |
// exibe a matriz | |
static void exibeMatriz(float a[][], int n) { | |
String vermelhoCiano = "\033[31;46m"; | |
String reset = "\033[0m"; | |
for (int i = 0; i < n; i++) { | |
for (int j = 0; j <= n; j++) { |
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
import java.util.Scanner; | |
class Main { | |
static int M = 10; //?? | |
// funcao principal | |
public static void main(String[] args) { | |
Scanner leitor = new Scanner(System.in); | |
int n = 3, flag = 0; | |
String pares; |
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 gaussjordan; | |
import java.util.Scanner; | |
class Main { | |
static int M = 10; //?? | |
// funcao principal | |
public static void main(String[] args) { | |
Scanner leitor = new Scanner(System.in); | |
int n = 3, flag = 0; |
OlderNewer