javascript
Brief description  about Online courses   join in Online courses
View Sangita  Biswal 's Profile

The program is not giving any output

import java.io.*;

// Demonstrate System.out.write( ).
class WriteExample {
public static void main(String args[]) {
int w;
w = 'S';
System.out.write(w);
System.out.write('n');
}
}
The above program given in example in console output is not giving any output.The program compiles successfully and runs but gives no output.Please help
Asked by Sangita Biswal | Dec 31, 2010 |  Reply now
Replies (2)
View sangita biswal 's Profile
Sir the code given by is also not showing any output.please help
Jan 3, 2011
View arun kumar das 's Profile
Hi

check following code, analyze your mistake.

import java.io.*;

class WriteExample1 {
public static void main(String args[]) {
int w;
w = 'S';
System.out.write(w);
System.out.write('\n');
}
}


java teacher
Jan 3, 2011