testing - System.out.println((int) 14.0/4); for(int i=1; i...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.Scanner; public class testing { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("Type 5 numbers."); System.out.println(14.0/4); System.out.println(14/4.0);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println((int) 14.0/4); for(int i=1; i < 2; i++) System.out.println(i); if ( 23 <= 5) if (4 >= 2) System.out.println("middle"); else System.out.println("not"); System.out.println("end"); } }...
View Full Document

This note was uploaded on 04/03/2010 for the course COMPSCI 600.107 taught by Professor Houlahan during the Spring '08 term at Johns Hopkins.

Ask a homework question - tutors are online