Declaring - double z = 3.3;...

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

View Full Document Right Arrow Icon
public class Declaring { public static void main(String[] args) {int x = 3; System.out.println("This is an interger " +x); char y = '@'; System.out.println("This is a character " +y);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: double z = 3.3; System.out.println("This is a decimal number(double) " +z); String t = "Unit 201"; System.out.println("This is a string " +t); } }...
View Full Document

Ask a homework question - tutors are online