[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
output of a program  XML
Forum Index » New to Java
Author Message
puja219

Newbie

Joined: 01/17/2012 21:45:53
Messages: 2
Offline

public static void main(String ars[])
{
String text="cOmpUtEr",st=" ";
for(int i=0;i<text.length();i++)
{
if(Character.isLowerCase(text.charAt(i)))
st+=Character.toUpperCase(text.charAt(i));
elseif(Character.isUpperCase(text.char(i)));
if(i%2!=0)
st+=Character.toLowerCase(text.charAt(i));
else
st=text.charAt(i-1);
}
System.out.println(st);
}
stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 855
Location: Superior, CO, USA
Offline

And your question is?

Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
puja219

Newbie

Joined: 01/17/2012 21:45:53
Messages: 2
Offline

i need to knw output of the program??
stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 855
Location: Superior, CO, USA
Offline

Just run it - I'm missing the issue.

Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
 
Forum Index » New to Java
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle