STEAM GROUP
Squid Appreciation Group CATSAG
STEAM GROUP
Squid Appreciation Group CATSAG
0
IN-GAME
5
ONLINE
Founded
19 May, 2016
Language
English
Location
United States 
ABOUT Squid Appreciation Group

Squid Appreciation

Hot & sexy squids
POPULAR DISCUSSIONS
VIEW ALL (1)
RECENT ANNOUNCEMENTS
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()); } }

VIEW ALL (10)
GROUP MEMBERS
Group Player of the Week:
Administrators
Members
0
IN-GAME
5
ONLINE
0 IN CHAT
Enter chat room
Founded
19 May, 2016
Language
English
Location
United States