Java Reference
In-Depth Information
if (values[i] > 0)
sum += values[i];
} else {
sum = values[0];
}
return sum;
}
Exercise 10.1 : Using ifelse in a loop, write a method that takes a
string parameter and returns a string with all the special characters in
the original string replaced by their language equivalents. For example,
a string with a " in the middle of it should create a return value with that
" replaced by \" . ( Section 7.2.3 on page 167 lists all special characters).
 
Search WWH ::




Custom Search