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

Info icon 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
Image of page 1

Info icon 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
Image of page 2
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
Image of page 3

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

Write-Up Grading If your submission scores 100% on automated grading, you receive 100%. If your submission does not score 100% on automated grading, then (i) the automated grade does not count, and (ii) your submission goes for manual grading. In manual grading the outcome will be one of four grades: 100 – a correct solution 70 – submission is on the right track, but is has errors 30 – submission is wrong, but related to problem 0 – no submission, or unrelated to problem
Image of page 4
Last class defining the MultiSet
Image of page 5

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

Image of page 6
Image of page 7

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

Image of page 8
Image of page 9

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

Image of page 10
Image of page 11
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

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern