Example2_9B

Example2_9B - ="(int(7.9(int(6.7...

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

View Full Document Right Arrow Icon
Epublic class exampl±2_9B { public static void main(String[] args) { int x = 15; int y = 23; doubl± z = 3.75; Syst±m.out.println("(int)(7.9 + 6.7) = " + (int)(7.9 + 6.7)); Syst±m.out.println("(int)(7.9) + (int)(6.7)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: = " + ((int)(7.9) + (int)(6.7))); Syst±m.out.println("(doubl±)(y / x) + z = " + ((doubl±)(y / x) + z)); Syst±m.out.println("(doubl±)(y) / x + z = " + ((doubl±)(y) / x + z)); } }...
View Full Document

This note was uploaded on 06/17/2011 for the course COMP 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.

Ask a homework question - tutors are online