STEAM-GRUPPE
Squid Appreciation Group CATSAG
STEAM-GRUPPE
Squid Appreciation Group CATSAG
0
I SPIL
4
ONLINE
Grundlagt:
19. maj 2016
Sprog:
Engelsk
Lokation:
United States 
OM Squid Appreciation Group

Squid Appreciation

Hot & sexy squids
POPULÆRE DISKUSSIONER
VIS ALLE (1)
SENESTE MEDDELELSER
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()); } }

VIS ALLE (10)
GRUPPEMEDLEMMER
Ugens spiller i gruppen:
Administratorer:
Medlemmer
0
I SPIL
4
ONLINE
0 I CHAT
Gå til chatrum
Grundlagt:
19. maj 2016
Sprog:
Engelsk
Lokation:
United States