GRUPA STEAM
Squid Appreciation Group CATSAG
GRUPA STEAM
Squid Appreciation Group CATSAG
0
W GRZE
4
ONLINE
Założona
19 maja 2016
Język
Angielski
Położenie
United States 
O Squid Appreciation Group

Squid Appreciation

Hot & sexy squids
POPULARNE DYSKUSJE
OSTATNIE OGŁOSZENIA
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()); } }

CZŁONKOWIE GRUPY
Gracz tygodnia w grupie:
Administratorzy
Członkowie
0
W GRZE
4
ONLINE
0 NA CZACIE
Wejdź do pokoju
Założona
19 maja 2016
Język
Angielski
Położenie
United States