Skip to content

August 7, 2014

Print nth character that comes after a known character in Java

by admin

Let’s say we want to print the 4th character that comes after ‘b’. In order to do that we will use:

System.out.println((char)('b'+4));
Read more from Java Examples

Leave a Reply

required
required

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments