I am new to java programming. I want to print a string with alternate characters in UpperCase.

```
String x=jTextField1.getText();
x=x.toLowerCase();
int y=x.length();
for(int i=1;i<=y;i++)
{}

```

I don't know how to proceed further. I want to do this question with the help of looping and continue function.
Help would be appreciated. Thanks.