Skip to content
Snippets Groups Projects
Commit 812301b4 authored by Camille Okubo's avatar Camille Okubo
Browse files

classe input

parent 4afa35ac
No related branches found
No related tags found
No related merge requests found
package main;
public class Input {
private String input = "";
private String[] inputRange;
public String getInput() {
return input;
}
public void setInput(String input) {
this.input = input;
}
public Input(String[] inputRange) {
this.inputRange = inputRange;
}
public boolean validInput(){
boolean result = false;
for(String s : inputRange) if (s.equals(input)) result = true;
return result;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment