+ 1

What is problem in this program?

public class Program { public static void main(String[] args) { char ch; ch='x'; System.out.println(ch); ch++; System.out.println(ch); ch=90; System.out.println(ch); } }

12th Oct 2017, 10:56 AM
Code Race
Code Race - avatar
1 Answer
+ 4
No problem: it prints xyz on 3 different lines
12th Oct 2017, 11:03 AM
seamiki
seamiki - avatar