GRUPO STEAM
Squid Appreciation Group CATSAG
GRUPO STEAM
Squid Appreciation Group CATSAG
0
A JOGAR
4
ONLINE
Criado
19 de Maio de 2016
Idioma
Inglês
País
United States 
SOBRE Squid Appreciation Group

Squid Appreciation

Hot & sexy squids
DISCUSSÕES POPULARES
VER TUDO (1)
ANÚNCIOS RECENTES
who wants admin???
public class RecursiveMultiplicationProgram implements IProgram { private final String programName; private final IOutputStrategy outputStrategy; private final IInputStrategy inputStrategy; public RecursiveMultiplicationProgram(String programName, IOutputStrategy outputStrategy, IInputStrategy inputStrategy) { this.programName = programName; this.outputStrategy = outputStrategy; this.inputStrategy = inputStrategy; } @Override public String getProgramName() { return programName; } @Override public void runProgram(String... args) { this.outputStrategy.output(this.getProgramName()); IntegerPair pair; try { pair = IntegerPairFactory.getIntegerPair(StringPairFactory.getStringPair(args)); } catch(Exception e) { try { outputStrategy.output("Input two integers, each followed by enter:"); pair = IntegerPairFactory.getIntegerPair(StringPairFactory.getStringPair(inputStrategy)); } catch(Exception e1) { outputStrategy.error("There was a problem with your input. Using fallback. (5 x 2)"); pair = IntegerPairFactory.getFallbackIntegerPair(); } } IRecursive<Integer> recursive = new AdditionRecursive(pair.first(), pair.second()); outputStrategy.output("The output is: " + recursive.execute()); } }

VER TUDO (10)
MEMBROS DO GRUPO
Jogador da semana do grupo:
Administradores
Membros
0
A JOGAR
4
ONLINE
0 NO CHAT
Entrar no chat
Criado
19 de Maio de 2016
Idioma
Inglês
País
United States