All pastes #348045 Raw Edit

Something

public java v1 · immutable
·published 2007-02-09 21:37 UTC
rendered paste body
public class SpickTalk {    private String sent;    public SpickTalk() {        sent = Main.getText();    }    public void doConversion() {        sent.toLowerCase();        char[] text = sent.toCharArray();        for (int i = 0; i < text.length; i++) {            if (Character.isWhitespace(text[i]))                continue;            if (i % 2 == 0)                text[i] = Character.toUpperCase(text[i]);        }        sent = new String(text);    }    // I CBA to work with static variables, so I made this.     public void printEnding() {        System.out.println("Conversion: \"" + sent + "\"");    }    public static void main(String[] args) {        SpickTalk st = new SpickTalk();        st.doConversion();        st.printEnding();        return;    }}