char and integer with serial communication

Are those code snippets from your Arduino code, or from your Java code?

In either case, perhaps the good folks at http://snippets-r-us.com can help. We're a little weird here. We need to see ALL of the code.