Skip to main content
Commonmark migration
Source Link

#Java, 259 bytes

Java, 259 bytes

for (i=0;i<in.length();i++)
{
if(Character.isLowerCase(in.charAt(i))){
o=o+in.charAt(i)+Character.toUpperCase(in.charAt(i));}
else if(Character.isUpperCase(in.charAt(i))){o=o+in.charAt(i)+Character.toLowerCase(in.charAt(i));}
else {o=o+in.charAt(i);}}

#Java, 259 bytes

for (i=0;i<in.length();i++)
{
if(Character.isLowerCase(in.charAt(i))){
o=o+in.charAt(i)+Character.toUpperCase(in.charAt(i));}
else if(Character.isUpperCase(in.charAt(i))){o=o+in.charAt(i)+Character.toLowerCase(in.charAt(i));}
else {o=o+in.charAt(i);}}

Java, 259 bytes

for (i=0;i<in.length();i++)
{
if(Character.isLowerCase(in.charAt(i))){
o=o+in.charAt(i)+Character.toUpperCase(in.charAt(i));}
else if(Character.isUpperCase(in.charAt(i))){o=o+in.charAt(i)+Character.toLowerCase(in.charAt(i));}
else {o=o+in.charAt(i);}}
Rollback to Revision 3
Source Link
cat
  • 5.9k
  • 2
  • 26
  • 44

#Java, 244259 bytes

for (i=0;i<in.length();i++) 
{ 
if(Character.isLowerCase(in.charAt(i))){ 
o=o+in.charAt(i)+Character.toUpperCase(in.charAt(i));} 
else if(Character.isUpperCase(in.charAt(i))){o=o+in.charAt(i)+Character.toLowerCase(in.charAt(i));} 
else {o=o+in.charAt(i);}}

#Java, 244 bytes

for(i=0;i<in.length();i++){if(Character.isLowerCase(in.charAt(i))){o=o+in.charAt(i)+Character.toUpperCase(in.charAt(i));}else if(Character.isUpperCase(in.charAt(i))){o=o+in.charAt(i)+Character.toLowerCase(in.charAt(i));}else{o=o+in.charAt(i);}}

#Java, 259 bytes

for (i=0;i<in.length();i++) 
{ 
if(Character.isLowerCase(in.charAt(i))){ 
o=o+in.charAt(i)+Character.toUpperCase(in.charAt(i));} 
else if(Character.isUpperCase(in.charAt(i))){o=o+in.charAt(i)+Character.toLowerCase(in.charAt(i));} 
else {o=o+in.charAt(i);}}
deleted 34 characters in body
Source Link
nicael
  • 4.8k
  • 24
  • 43

#Java, 259244 bytes

for (i=0;i<in.length();i++)
 {
 if(Character.isLowerCase(in.charAt(i))){
 o=o+in.charAt(i)+Character.toUpperCase(in.charAt(i));}
 else if(Character.isUpperCase(in.charAt(i))){o=o+in.charAt(i)+Character.toLowerCase(in.charAt(i));}
 else {o=o+in.charAt(i);}}

#Java, 259 bytes

for (i=0;i<in.length();i++)
 {
 if(Character.isLowerCase(in.charAt(i))){
 o=o+in.charAt(i)+Character.toUpperCase(in.charAt(i));}
 else if(Character.isUpperCase(in.charAt(i))){o=o+in.charAt(i)+Character.toLowerCase(in.charAt(i));}
 else {o=o+in.charAt(i);}}

#Java, 244 bytes

for(i=0;i<in.length();i++){if(Character.isLowerCase(in.charAt(i))){o=o+in.charAt(i)+Character.toUpperCase(in.charAt(i));}else if(Character.isUpperCase(in.charAt(i))){o=o+in.charAt(i)+Character.toLowerCase(in.charAt(i));}else{o=o+in.charAt(i);}}
Nitpicks on the header
Source Link
DJMcMayhem
  • 59.6k
  • 17
  • 196
  • 348
Loading
deleted 193 characters in body
Source Link
Loading
Source Link
Loading