New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

CSE 110 - 3rd set of Notes

by: RianMartins

CSE 110 - 3rd set of Notes CSE 110

GPA 4.0
Prin of Programming with Java Lecture
Justin Selgrad

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Here is the third set of notes for the class. The material is a revised version of previous semesters, focused on what was taught in class. Content: - Intro to Functions/Methods - Decision ...
Prin of Programming with Java Lecture
Justin Selgrad
Class Notes
25 ?




Popular in Prin of Programming with Java Lecture

Popular in ComputerScienence

This 4 page Class Notes was uploaded by RianMartins on Thursday October 15, 2015. The Class Notes belongs to CSE 110 at Arizona State University taught by Justin Selgrad in Fall 2015. Since its upload, it has received 64 views. For similar materials see Prin of Programming with Java Lecture in ComputerScienence at Arizona State University.

Similar to CSE 110 at ASU

Popular in ComputerScienence


Reviews for CSE 110 - 3rd set of Notes


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/15/15
CSE 110 PRINCIPLES OF PROGRAMMING IN JAVA WEEKLY NOTES 3 Functions amp Methods Mathematics Java Defining Functions Defining Functions f x x 3 String substring int start int end gxyx2yxy UsingCalling the functions UsingCalling the functions f3 String a TestFunc g24 String b asubstringl4 Decision fstatement is used to make several decisions n programming in Java you can use if else and else if keywords lf statement is used to skip some statements when it is not necessary f statement starts from quotifquot keyword and then a ltexperssiongt is described within a pair of The statements are described within a block of after the condition You don39t have to use a pair of only when it has one statement in the block if ltExpressiongt if a add some statements System out println quot a is 3quot SystemoutprintlnquotDonelquot if ltExpressiongt if a 0 only one statement System out println quot a is Oquot An expression is a piece of code that can be resolved as true or false which is a boolean value eg x lt 5 true ifx is less than 5 flase otherwise Data Type The boolean is a primitive data type of true or false Declaration and Assignment lttypegt ltvariabenamegt lttypegt ltvariabenamegt lttrue or falsegt eg boolean isMale true Use true all lowercase Not True or TRUE boolean isValid false Use false all lowercase Not False or FALSE Logical Operators Logical operators are used to compare two values Equality Inequalities lt gt lt gt NotNegation AND logic ampamp OR logic I You can merge multiple expressions into one egxlt5 ygt10 x is less than 5 or y is more than 10 What is evaluated when x y 10 egxlt5ampampygt10 x is less than 5 and y is more than 10 What is evaluated when x y 10 The else block is executed only if the test expression is resolved as false if ltExpressiongt if a Systemoutprintlnquota 339 add some statements eke else Systemoutprintlnquotdonequot add some statements System out println quotnot3 quot if ltconditiongt if a add one comment System out println quotAO quot eke else addoneamnnmnt SystemoutprintlnquotnotOquot Multiple Condition lf else if else Statement is used to make more than two conditions Syntax ifltexpression1gt if a gt20 m a eseifltexpression 2gt else if a gt 15 m a l eBequotJ else if a gt 10 a 2 else a 3 Nested if Ifstatement can be used inside of other ifstatement Syntax if ltexpression1gt if ltexpression 2gt ese The ese block is always associated with the closest ifstatement De Morgan s Law De Morgan39s Law named after the logician Augustus De Morgan 18061871 can be used to simplify the Boolean expressions A ampamp B is equivalent to A ll B A II B is equivalent to A ampamp B A is equivalent to A


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Allison Fischer University of Alabama

"I signed up to be an Elite Notetaker with 2 of my sorority sisters this semester. We just posted our notes weekly and were each making over $600 per month. I LOVE StudySoup!"

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.