Code example for PrintStream

Methods: println

0
            System.out.println("New metadata+artwork: id=" + generationId
                    + " data=" + metadata + " art=" + artwork);
        } 
 
        void printUsageMessage() { 
            System.out.println("Monitoring remote control displays...  available commands:");
            System.out.println("(q)uit: finish monitoring");
        } 
 
        void run() throws RemoteException { 
            printUsageMessage(); 
 
            mAudioService.registerRemoteControlDisplay(this, 0, 0);
 
            try { 
                InputStreamReader converter = new InputStreamReader(System.in);
                BufferedReader in = new BufferedReader(converter);
                String line;
 
                while ((line = in.readLine()) != null) {
                    boolean addNewline = true;