int a; booleanb=true; double c, f; String d; PrintWriterout=newPrintWriter("dict.dic"); Scannercin=newScanner(System.in);
for (inti=0; i < 5; i++) { a = cin.nextInt(); f = Math.random(); if (f > 0.5) b = true; else b = false; c = cin.nextDouble(); d = cin.next(); out.println(a); out.println(b); out.println(c); out.println(d); } out.close(); // Remember this! cin.close();