Presentation is loading. Please wait.

Presentation is loading. Please wait.

 byte  short  int  long  float  double  boolean  char.

Similar presentations


Presentation on theme: " byte  short  int  long  float  double  boolean  char."— Presentation transcript:

1

2  byte  short  int  long  float  double  boolean  char

3

4 1. Thou Shalt Not Use A Computer To Harm Other People. 2. Thou Shalt Not Interfere With Other People’s Computer Work. 3. Thou Shalt Not Snoop Around In Other People’s Computer Files. 4. Thou Shalt Not Use A Computer To Steal. 5. Thou Shalt Not Use A Computer To Bear False Witness. 6. Thou Shalt Not Copy Or Use Proprietary Software For Which You have Not Paid. 7. Thou Shalt Not Use Other People’s Computer Resources Without Authorization Or Proper Compensation. 8. Thou Shalt Not Appropriate Other People’s Intellectual Output. 9. Thou Shalt Think About The Social Consequences Of The Program You Are Writing Or The System You Are Designing. 10. Thou Shalt Always Use A Computer In Ways That Insure Consideration And Respect For Your Fellow Humans.

5  Software life cycle › A sequence of steps in software engineering to develop the specified software  Software improvement models › Various models to help develop software  Object Oriented Programming › Used to build classes and objects and to define the relationship between objects

6

7  The Scanner class is used to read in user input  It has several methods that allow users to manipulate the input › The Split method of the Scanner class allows users to divide the input into chunks with the use of a delimiter › String x = “Jessa/Schwarting/Member”; String[] y = x.split(“/”);

8  Wrapper classes are used to convert primitive data types into objects, and to convert objects into primitive data types › Integer.convertToInt(x) › Double.convertToDouble(y) › Etc.

9  Inheritance allows users to create parent and child classes, where the parent classes contain variables and methods that the children classes can use. › Parent classes are abstract and can contain abstract methods  Polymorphism allows objects to take on different forms › Generally used when a parent class is used to refer to a child class › Example: Customer x = new NonMemberCustomer();

10

11  Exceptions are errors that occur while a program is running. › Ex: FileNotFound › Users can define their own  I/O Streams › Used to read in files  Number/Decimal Format › Used to format numbers Tutor tip: Find the code for these concepts in your notes and write them down on your crib sheets!

12  Nested Classes have two types – static and non-static. › Non-static nested classes (inner classes) have access to whatever is in the enclosing class, private or not › Static nested classes do not.

13 Any questions?


Download ppt " byte  short  int  long  float  double  boolean  char."

Similar presentations


Ads by Google