Search found 1 match

by Kladdyman
Sun Dec 05, 2010 4:05 pm
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 9376

Java

Some simple Java with comments. public static void main(String[] args) { int count = 0, a = 0, b; char c; String s = "---"; // The string while (a < s.length()) { c = s.charAt(a); // Get the a-th character in the string if (c == 'x') { s = s.replaceFirst("x", ""); // Re...