public class Test { public static int i = 0;

Similar documents
Object Oriented Programming: In this course we began an introduction to programming from an object-oriented approach.

Inf1-OP. Inf1-OP Exam Review. Timothy Hospedales, adapting earlier version by Perdita Stevens and Ewan Klein. March 20, School of Informatics

CS2013 Course Syllabus Spring 2017 Lecture: Friday 8:00 A.M. 9:40 A.M. Lab: Friday 9:40 A.M. 12:00 Noon

Java 2. Course Outcome Summary. Western Technical College. Course Information. Course History. Course Competencies

Announcements. 1. Forms to return today after class:

+ Abstract Data Types

Programming Languages and Techniques (CIS120)

CISC 3130 Data Structures Fall 2018

CSE115 / CSE503 Introduction to Computer Science I. Dr. Carl Alphonce 343 Davis Hall Office hours:

CSE 8B Final Exam Fall 2015

CSE 303 Concepts and Tools for Software Development. Magdalena Balazinska Winter 2010 Lecture 27 Final Exam Revision

Inf1-OOP. OOP Exam Review. Perdita Stevens, adapting earlier version by Ewan Klein. March 16, School of Informatics

Lec 3. Compilers, Debugging, Hello World, and Variables

5/23/2015. Core Java Syllabus. VikRam ShaRma

CSC207 Week 3. Larry Zhang

Java Programming. Price $ (inc GST)

This page intentionally left blank

CSE351 Winter 2016, Final Examination March 16, 2016

Announcements. PS 3 is due Thursday, 10/6. Midterm Exam 1: 10/14 (Fri), 9:00am-10:53am

Assigned Date: August 27, 2014 Due Date: September 7, 2015, 11:59 PM

COP 3330 Final Exam Review

The class Object. Lecture CS1122 Summer 2008

Final Exam. Programming Assignment 3. University of British Columbia CPSC 111, Intro to Computation Alan J. Hu. Readings

Curriculum Map Grade(s): Subject: AP Computer Science

COMP-202: Foundations of Programming. Lecture 26: Review; Wrap-Up Jackie Cheung, Winter 2016

Announcements. PS 4 is ready, due next Thursday, 9:00pm. Midterm Exam 1: 10/14 (Fri), 9:00am-10:53am

Java for Non Majors Spring 2018

Agenda CS121/IS223. Reminder. Object Declaration, Creation, Assignment. What is Going On? Variables in Java

Core Java - SCJP. Q2Technologies, Rajajinagar. Course content

COMPUTER SCIENCE DEPARTMENT PICNIC. Operations. Push the power button and hold. Once the light begins blinking, enter the room code

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical

COMP-202 More Complex OOP

About this sample exam:

Practice for Chapter 11

CSC 1351: Final. The code compiles, but when it runs it throws a ArrayIndexOutOfBoundsException

CORE JAVA TRAINING COURSE CONTENT

Java for Non Majors. Final Study Guide. April 26, You will have an opportunity to earn 20 extra credit points.

CS 2110 AEW SIGN UP FOR 1 CREDIT S/U COURSE!!!

Lecture 1: Welcome! CSE 373: Data Structures and Algorithms CSE WI - KASEY CHAMPION 1

CS121/IS223. Object Reference Variables. Dr Olly Gotel

Building Java Programs

IMACS: AP Computer Science A

CS106X Final Review. Rachel Gardner and Jared Bitz. slides adapted from Ashley Taylor, Anton Apostolatos, Nolan Handali, and Zachary Birnholz

CS 2110 AEW. Machine Language. Outline. Assembly Language. High-Level Language 1/26/2012

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

CSC207H: Software Design. Java + OOP. CSC207 Winter 2018

College Board. AP CS A Labs Magpie, Elevens, and Picture Lab. New York: College Entrance Examination Board, 2013.

Big Java Late Objects

Prelim One Solution. CS211 Fall Name. NetID

Pull Lecture Materials and Open PollEv. Poll Everywhere: pollev.com/comp110. Lecture 12. else-if and while loops. Once in a while

Review sheet for Final Exam (List of objectives for this course)

"Charting the Course... Java Programming Language. Course Summary

CS171:Introduction to Computer Science II

CSE 303: Concepts and Tools for Software Development

Faculty of Science FINAL EXAMINATION

CSCI 136: Fundamentals of Computer Science II. Keith Vertanen Museum

Tutorial 2 Today we will have a quick introduction to ArgoUML and how to use it, as well as look at some examples of class diagrams.

Computer Science II Data Structures

CS 113 PRACTICE FINAL

INHERITANCE & POLYMORPHISM. INTRODUCTION IB DP Computer science Standard Level ICS3U. INTRODUCTION IB DP Computer science Standard Level ICS3U

Announcements. Java Review. More Announcements. Today. Assembly Language. Machine Language

Department of Networks College of Bardarash Technical Institute DUHOK Polytechnic University Subject: Programming Fundamental by JAVA Course Book


CO Java SE 8: Fundamentals

Chapter 6 Arrays. Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved.

CMSC 341. Nilanjan Banerjee

Logistics. Final Exam on Friday at 3pm in CHEM 102

Introduction to Programming Using Java (98-388)

Murach s Beginning Java with Eclipse

PRINCIPLES OF SOFTWARE BIM209DESIGN AND DEVELOPMENT 00. WELCOME TO OBJECTVILLE. Speaking the Language of OO

CSCI-142 Exam 1 Review September 25, 2016 Presented by the RIT Computer Science Community

CompuScholar, Inc. Alignment to Nevada "Computer Science" Course Standards

CSE wi Final Exam 3/12/18. Name UW ID#

Fall Problem Set 1

CS2013 Course Syllabus Spring 2018 Lecture: Mon/Wed 2:00 P.M. 2:50 P.M. SH C259 Lab: Mon/Wed 2:50 P.M. 4:00 P.M. SH C259

Chapter 1 Getting Started

Foundations of object orientation

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5

Object-Oriented ProgrammingInheritance & Polymorphism

You must bring your ID to the exam.

Java Bytecode (binary file)

CS : Data Structures

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

INSTRUCTIONS TO CANDIDATES

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized

Java-Array. This tutorial introduces how to declare array variables, create arrays, and process arrays using indexed variables.

Reviewing for the Midterm Covers chapters 1 to 5, 7 to 9. Instructor: Scott Kristjanson CMPT 125/125 SFU Burnaby, Fall 2013

Object- Oriented Analysis, Design and Programming

(Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info

Programming Languages and Techniques (CIS120)

Class, Variable, Constructor, Object, Method Questions

XC Total Max Score Grader

Changing an Object s Properties

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

CSE 201 JAVA PROGRAMMING I. Copyright 2016 by Smart Coding School

PowerPoint Slides. Object-Oriented Design Using JAVA. Chapter 2. by Dale Skrien

Exam Review. CSE 331 Section 10 12/6/12. Slides by Kellen Donohue with material from Mike Ernst

COMP-202: Foundations of Programming. Lecture 26: Image Manipulation; Wrap-Up Jackie Cheung, Winter 2015

Data Structures Brett Bernstein. Lecture 1: Introduction and a Review/Enrichment of CS 101

Object-Oriented Programming and Data Structures

Transcription:

Lec 25 Conclusion

public class Test { public static int i = 0; public static void main(string[] args) { Test t = new Test(i++); String s = "hi"; t.method1(i, s); System.out.println(i + s); } public Test(int i) { this.i = i*2; } } public void method1(int i, String s) { this.i = i++; s += this.i; }

Turn in extra credit by this Friday. Projects due midnight March 12 th No slip days, no extensions, no excuses Project demos on March 13 th, 1-3 Bring your laptop with a charged battery, format will be like a science fair where everyone can walk around and see your project Next class is optional. Normal class location. 8AM: Final exam in this room, Monday 8-11am 2PM: Final exam in this room, Monday 3-6pm

We covered Linux Hello world Binary Algorithms Run time Growth Big O Editors Comments Style Scope Variables Primitive types Conditionals Order of operations Expressions Compound operators Turtles Casting Loops Switch statements Methods Method overloading User input Parameters Arrays Memory File IO Buffering ArrayLists Sorting Searching HashSet HashMap Classes UML Access modifiers Constructors this super Stack Heap Static Junit tests Threads Inheritance Polymorphism Declared type Actual type Method overriding Abstract classes Interfaces IDEs JavaFX GUIs Events Exceptions Animations Recursion Candy crush GTA

Stories on Importance on getting involved Changing car tires Pirates of the Caribbean Middle school and order of operations Blind dates Kanye Tweets Deciding how many kids you want to have and buying a car Amsterdam and HashSets Rouge programming Pokémon programming Dragons

Looking ahead life after CSE 11? What was your favorite/most compelling idea from CSE11?

Do you want to know more about how to store and find data efficiently? HW6 Collections - ArrayList - HashSet/Map

If you want to know more about how to store and find data efficiently Write a method to find an element in an array and return its index. startindex starts at 0 public static int find( String[] mylist, String tofind, int startindex ) { if ( startindex >= mylist.length ) { return -1; } if ( tofind.equals( mylist[startindex] Then you ll ) love ) { CSE return startindex; 12! (and eventually } CSE 100) return find( mylist, tofind, startindex + 1 ); } What is the maximum number of elements in the list that find might have to consider, taking into account the total number across all recursive calls?

Do you want to know more about how to debug? HW7 - Unit testing - Debugging - IDEs (Eclipse)

If you ever had a bug you couldn t find For some reason my critters only move north why?? My 2048 code always thinks it can move right, even when it shouldn t why?? Then you ll love CSE 15L! I m getting an ArrayIndexOutOfBounds error. Why??

Did you wonder how your computer runs so many things at the same time and how it manages hardware? HW8 - Threads

Did you wonder how your computer runs so many things at the same time and how it manages hardware? Main GUI thread Animation thread Wake up and do loop Change contents of board Then you ll love CSE 120!

Do you want to learn how to build larger programs? HW9 Final Project How to design large programs Work in teams

If you liked building larger programs Then you ll love CSE 110!

And so much more!

Of these, which was your favorite PA? A. PA4: poker B. PA5: File recovery C. PA6: WordCloud D. PA7: 2048+testing E. PA8: ObjectDraw

Of these, which was your favorite PA? A. Favorite last slide B. Second favorite last slide C. PA9: Business program w/ excel D. Final Project

Trace/debug: interpreting Java errors In what method that you wrote does the error occur? A. main B. sum C. main and sum D. neither java.lang.arrayindexoutofboundsexception: 5 at ArrayPlayReview.sum(ArrayPlayReview.java:7) at ArrayPlayReview.main(ArrayPlayReview.java:15)

UCSD s goals for this course Write Programs/algorithms Using loops, arrays, conditionals, variables objects, subclasses, GUIs, recursion, etc Trace/debug Draw memory models Given some code, what does it do? Find the errors and fix them Explain Why things go wrong How things work/why code functions the way it does Why the answer to a question is right or wrong HW9 had almost everything that we covered in the course Inheritance, loops, collections, classes, new APIs,

Common interview question Write a program that prints the numbers from 1 to 100. But for multiples of three print Fizz instead of the number and for the multiples of five print Buzz. For numbers which are multiples of both three and five print FizzBuzz Can you do it using recursion? Can you draw the memory models for both solutions? Can you implement without the % operator?

My additional goals for this course Independence Program Clarity/Documentation/Style Mentorship with tutors

Final Thoughts http://www.cape.ucsd.edu/