Skip to content

Commit

Permalink
completed
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmay committed Feb 6, 2019
1 parent 863f97a commit 92bb508
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Java/CodingBatExercises/missingChar.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,13 @@ public String missingChar (String str, int n) {
}
return str.substring(0, n) + str.(n, str.length() - 1);
}
public static void main(String[] args) {

String s = missingChar("kitten", 1);
System.out.println(s);
s = missingChar("kitten", 0);
System.out.println(s);
s = missingChar("kitten", 4);
System.out.println(s);
}
}

0 comments on commit 92bb508

Please sign in to comment.