Day-08-MultiSet

# Day-08-MultiSet - CSE116 CSE504 Introduction to Computer...

• Notes
• 11

This preview shows pages 1–11. Sign up to view the full content.

CSE116 / CSE504 Introduction to Computer Science II Dr. Carl Alphonce 343 Davis Hall [email protected]uffalo.edu Office hours: Thursday 12:00 PM – 2:00 PM Friday 8:30 AM – 10:30 AM OR request appointment via e-mail

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

PROFESSIONALISM Turn off and put away electronics: cell phones pagers laptops tablets etc. © Dr. Carl Alphonce
ANNOUNCEMENTS Sign up for Piazza (up to 96% registration) 12 students have still not signed up piazza.com/buffalo/spring2016/cse116 Recitation Write-ups are running this week

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

Last class defining the MultiSet

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

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

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

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Today common problems defining the MultiSet Coming up defining the MultiSet ROADMAP channel 1 A. x: abcde B. x: abc201 What is printed? String x = "x: "+'a'+'b'; x += 'c'; x += 'd' + 'e'; System.out.println(x); A. x: abcde B. x: abc201 What is printed? String x = "x: "+'a'+'b'; x += 'c'; x += 'd' + 'e'; System.out.println(x); A. x: abcde B. x: abc201 What is printed? String x = "x: "+'a'+'b'; x += 'c'; x += 'd' + 'e'; System.out.println(x); x += 'd' + 'e' equivalent to x = x + ('d' + 'e') First ‘+’ is String concatenation Second ‘+’ is numeric addition – produces an int value ‘d’ is 100 ‘e’ is 101 ‘d’ + ‘e’ is 201 "x: "+'a'+'b' equivalent to ("x: "+'a') + 'b' Both first and second ‘+’ are interpreted as String concatenation Expanding… What is printed? String x = "x: "+'a'+'b'; x += 'c'; x += 'd' + 'e'; System.out.println(x); public booleancontains(Object obj) (see code in repo) © Dr. Carl Alphonce...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern