{{ message }}

Instantly share code, notes, and snippets.

🏠
Working from home

# Roberto Rodrigues RobertoRodrigues

🏠
Working from home
Created Nov 4, 2013
exemplo de arquivo .hgrc
View .hgrc
 [ui] username= merge=meld [extensions] mq= color= purge= hgext.extdiff= [extdiff] cmd.meld=
Created May 7, 2011
Problema de conversão de Digital para Decimal
View Dojo.java
 //importa biblioteca JUnit para testes import junit.framework.TestCase; public class Dojo extends TestCase { public static String zero = " _ \n| |\n|_|"; public static String um = " \n | \n | "; public static String dois = " _ \n _|\n|_ "; public static String tres = " _ \n _|\n _|"; //****metodo****
Created Apr 3, 2011
Dojo 01/04/2011 Problema Roleta Romana
View Dojo.java
 import junit.framework.TestCase; public class Dojo extends TestCase { int roletaRomana(int n, int p, int i) { if (p > 1 && (n==2 || n== 2*p || n==9 || n==4)) return i; if (p==1 && i!=1) return i-1; return n; } //****testes****
Created Apr 3, 2011
Dojo 02/04/2011 Problema Roleta Romana
View Dojo.java
 import junit.framework.TestCase; public class Dojo extends TestCase { //****metodo para resolver o problema**** int roletaRomana(int p, int i) { if (p==8) return (i+6)%p; return (i+1)%p; }
Created Mar 29, 2011
Dojo 29/03/2011 Problema do Burger King
View Dojo.java
 import junit.framework.TestCase; public class Dojo extends TestCase { String burguerKing(int caixa1, int caixa2, int drive) { if((caixa1+1)*5+5 >= (caixa2+1)*5+5){ if((caixa2+1)*5+5 >= (drive+1)*3 ){ return "drive"; }else {
Created Mar 22, 2011
Dojo 22/03/2011 Problema: Conversão de número decimal para Romano
View Dojo.java
 import junit.framework.TestCase; public class Dojo extends TestCase { //****metodo para resolver o problema**** String convDecRoman(int decimal) { String roman = ""; if (decimal == 9){ roman = "IX"; } if(decimal <=8 && decimal>=5){
Created Mar 20, 2011
View Dojo.java
 import junit.framework.TestCase; public class Dojo extends TestCase { int fizzBuzz(int valor) { if(valor%3==0){ valor = valor/3; } if(valor%5==0){
Created Mar 20, 2011