Skip to content

Instantly share code, notes, and snippets.

@mjg123 mjg123/Convert.java
Last active May 9, 2018

Embed
What would you like to do?
A little class for re-writing Java method names when using `jaotc`
public class Convert {
public static void main(String args[]) throws Throwable {
int i;
boolean inParams = false;
while ((i = System.in.read()) >= 0) {
switch (i) {
case ':':
continue; // skip
case '/':
if (!inParams) {
i = '.';
}
break;
case '(':
inParams = true;
break;
case '\n':
case '\r':
inParams = false;
break;
}
System.out.write(i);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.