joseleonweb

Untitled

Mar 1st, 2021
339
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Demonstrate PrintWriter
  2.  
  3. package m3uf3characterstreams;
  4.  
  5. import java.io.*;
  6.  
  7. public class PrintWriterDemo {
  8.     public static void main(String[] args) {
  9.         PrintWriter pw = new PrintWriter(System.out, true);
  10.         int i = 10;
  11.         double d = 123.65;
  12.        
  13.         pw.println("Using a PrintWriter.");
  14.         pw.println(i);
  15.         pw.println(d);
  16.        
  17.         pw.println(i + " + " + d + " is " + (i+d));
  18.     }
  19. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×