diff --git a/src/ch/zhaw/ads/BracketServer.java b/src/ch/zhaw/ads/BracketServer.java index 71cf497..9cc6607 100644 --- a/src/ch/zhaw/ads/BracketServer.java +++ b/src/ch/zhaw/ads/BracketServer.java @@ -9,9 +9,9 @@ public class BracketServer implements CommandExecutor { return checkBrackets(command) ? "true" : "false"; } - public boolean checkBrackets(String command) { + public boolean checkBrackets (String arg) { Stack stack = new ListStack(); - char[] chars = command.toCharArray(); + char[] chars = arg.toCharArray(); for (char x: chars) { Character closingBracket = getClosingBracketForOpening(x); if(closingBracket != null){ diff --git a/src/ch/zhaw/ads/WellformedXmlServer.java b/src/ch/zhaw/ads/WellformedXmlServer.java new file mode 100644 index 0000000..d6425a8 --- /dev/null +++ b/src/ch/zhaw/ads/WellformedXmlServer.java @@ -0,0 +1,13 @@ +package ch.zhaw.ads; + +public class WellformedXmlServer implements CommandExecutor { + + @Override + public String execute(String command) throws Exception { + return checkWellformed(command) ? "true" : "false"; + } + + public boolean checkWellformed(String arg) { + + } +} \ No newline at end of file