patelh-prompt8

patelh-prompt8 - Harsh Patel Prompt 8 CISC 115-N02 1. The...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Harsh Patel Prompt 8 CISC 115-N02 1. The standard convention for creating identifier names are the following: We may choose our own variable names and class names in Java, as long as they do not use any of the java keywords. We should always choose names for our variables that could give us an indication on what they are used for. For example if I wanted to count number of students I would name it int students; instead of int x; . Variable names cannot contain spaces in them. It can contain uppercase and lowercase letters. It is also recommend to start with a lowercased word and use an uppercase character while starting another word in the variable name because it improves readability. For example :- int finalGrade; The first character must be one of the letters a-z, A-Z an underscore ( _ ), or a dollar sign ( $ ). After the first character, you may use the letters a-z, A-Z, digits 0-9, the underscore ( _ ), or the dollar sign ( $ ). UPPERCASE and lowercase characters are distinct. Identifiers can’t include spaces.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/17/2011 for the course CISC 113 taught by Professor Doreencornell during the Spring '10 term at bucks.edu.

Page1 / 2

patelh-prompt8 - Harsh Patel Prompt 8 CISC 115-N02 1. The...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online