Java Programming Essentials

welcome to cse 143 n.w
1 / 8
Embed
Share

Explore the fundamentals of Java programming, including control structures, data types, collections, objects, and classes. Learn about essential concepts like recursion, OOP, and working with arrays. Dive into Java collections, including ArrayList, LinkedList, HashMap, TreeSet, and PriorityQueue. Understand the core principles of classes and objects, abstraction, and object-oriented programming (OOP).

  • Java Programming
  • Data Structures
  • Object-Oriented Programming

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Welcome to CSE 143! 2

  2. Context for CSE 143 CSE 142 Control: loops, if/else, methods, parameters, returns I/O: Scanners, user input, files Data: primitive types (int, double, etc.), arrays, classes CSE 143 Control: recursion Data Java collections Classes + Object Oriented Programming Best of CS 3

  3. Collections collection: an object that stores data; a.k.a. "data structure" the objects stored are called elements some collections maintain an ordering; some allow duplicates typical operations: add, remove, clear, contains (search), size examples found in the Java class libraries: (covered in this course!) ArrayList, LinkedList, HashMap, TreeSet, PriorityQueue all collections are in the java.util package import java.util.*; 6

  4. Client - Radio 14

  5. Implementer - Radio 15

  6. Client ArrayList ArrayList<String> list: [ a , b , c ] 16

  7. Implementer - ArrayList String[] elementData: [ a , b , c , null, null, null, null, null, null] int size: 3 17

  8. Recall: classes and objects class: A program entity that represents: A complete program or module, or A template for a type of objects. (ArrayList is a class that defines a type.) object: An entity that combines state and behavior. object-oriented programming (OOP): Programs that perform their behavior as interactions between objects. abstraction: Separation between concepts and details. Objects provide abstraction in programming. 18

More Related Content