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; |
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
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
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
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
public class Questao10_v4 { | |
public static void main(String[] args) { | |
int[][] tabuleiro = { | |
/* Lado Branco */ | |
//0,1,2,3,4,5,6,7 | |
//B,P,B,P,B,P,B,P | |
/*0 B*/ {0,0,0,0,0,0,0,0}, | |
/*1 P*/ {0,0,0,0,0,0,0,0}, | |
/*2 B*/ {0,0,0,0,0,0,0,0}, | |
/*3 P*/ {0,0,0,0,0,0,0,0}, |
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; | |
/** | |
* @author Wagner Bonfim | |
*/ | |
public class Questao9 { | |
public static void main(String[] args) { | |
Scanner leitor = new Scanner(System.in); | |
boolean rodarPrograma = true; | |
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; | |
/** | |
* @author Wagner Bonfim | |
*/ | |
public class Questao8 { | |
public static void main(String[] args) { | |
Scanner leitor = new Scanner(System.in); | |
int[][] matriz = { | |
{0,0,0,0,0,0}, | |
{0,0,0,0,0,0}, |
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; | |
/** | |
* @author Wagner Bonfim | |
*/ | |
public class Questao7 { | |
public static void main(String[] args) { | |
Scanner leitor = new Scanner(System.in); | |
boolean rodaPrograma = true; | |
double[][] notasBimestrais = new double[3][4]; |
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.Random; | |
import java.util.Scanner; | |
/** | |
* @author Wagner Bonfim | |
*/ | |
public class Questao6 { | |
public static void main(String[] args) { | |
String[][] jogoDaVelha = criaMatriz(); | |
Scanner leitor = new Scanner(System.in); |
NewerOlder