diff --git a/week1/day2/assignments/mandatory/ChangeOddIndexToUpperCase.java b/week1/day2/assignments/mandatory/ChangeOddIndexToUpperCase.java index ddde269..fd2b038 100644 --- a/week1/day2/assignments/mandatory/ChangeOddIndexToUpperCase.java +++ b/week1/day2/assignments/mandatory/ChangeOddIndexToUpperCase.java @@ -1,7 +1,6 @@ package week1.day2.assignments.mandatory; -public class ChangeOddIndexToUpperCase { - + /* Pseudo Code @@ -19,4 +18,24 @@ public class ChangeOddIndexToUpperCase { * d)within the loop, change the character to uppercase, if the index is odd else don't change */ -} \ No newline at end of file + public static void main(String[] args) { + // TODO Auto-generated method stub + + String original="changeme"; + char[] chngeChar= original.toCharArray(); + for(int i=0;i