print( ) method
The print() method prints the required output on the same line continuously again and again on the screen.
Example
- package test;
- public class Test
- {
- public static void main(String args[])
- {
- System.out.print("first statement. ");
- System.out.print("second statement. ");
- System.out.print("third statement");
- }
- }
No comments:
Post a Comment