Added: 3 years ago
From: StanfordUniversity
Views: 81,196
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (133)

Sign In or Sign Up now to post a comment!
  • boolean mind fucked

  • well don't accelerate particles to the speed of light lol

  • Can ANYONE see the screen at 9:35 ? 

  • 15 divided by 2 is 7?

    wtf

  • @mrpraprith watch the video again, if you divide with integers, it throws away the decimal

  • @micaht112233

    I know i was being funny.

  • i MADE MY OWN KAREL WORLD AND PROGRAM (IM SURE YOU ALREADY HAVE)

  • Candy from the sky? I WANT IT!

  • Whoever disliked this is crazy, literally.

  • I wish these courses concentrated more on design strategy and stuff like that instead of just giving a list of basic programming commands. All the stuff talked about in this lecture is stuff people can easily learn by just doing.

  • working from eclipse, what is the library I need to add so I can use readInt()?

  • @xajin24 you need to download the acm package and import it to Eclipse so you can use it with this Course. Took me a while to figure it out, but if you need assistance, shoot me a message.

  • Is it Possible to cast an Integer as a String?

  • @TripodGRANNE You can convert an Integer to a String with the 'toString' method in the 'Integer' class.

  • @TripodGRANNE Or you can use String.valueOf() method

  • @TripodGRANNE yeah You don;t even have to cast.You the + operator.

    int num = 59;

    String number59 = ""+num;

    System.out.println(number59);

  • I have a huge smile on my face. I had a cool little robot called Karel in my mind over the new year break. Yet another huge inspiration from Stanford University. I feel compelled to start a blog to share all my favourites as a thank you. Just searched the domain. It's available. I will post the link(s) soon.

  • You couldn't wish for a better teacher. Genuine, passionate, comprehensive, clear & actually quite funny. Sahami is my hero.

  • this guy makes me LOVE programming ..i am learning like watching a movies in a cinema...thank you Mehran ....life is better with people like you...

  • You know, it would be nice if all the students used their microphone every time they asked a question...

  • its like a mixture of learning maths and a language at the same time! ... I NEVER thought id be doing that on my Christmas holidays!

  • By each video i feel ... smarter !

  • Why are there dislikes on this vid? :S

  • @michaeldcurry1 I guess they did the double y = (double)x/2; formula and the answer is wrong :/... All they had to do was add parenthesis around the x/2.

  • Professor Mehran is a very dedicated and great teacher I wished I had him as a teacher.Some teacher may be knows the material but do not have the way to presented in a simple way...........................­.....Thanks for Stanford and Prof. Mehran

  • Runescape.

  • @nathond1 :o

  • i love the ability to pause lectures, gives me time to daydream and think of some possibilities of using this without missing a thing

  • wow i love pokemon but i dont love this

  • Great professor!

    I totally hated programming before, because I had a boring professor, but know I am starting to like it - because professor Mehran makes it fun, and that's what leaning is about: having fun.

    Great job!!

    Peace out

  • fantasy football

    ff-winners

  • ...and why not Proffesor... 72 is an awesome number!!

  • no time for questions.... but time for a story of boole! my physics teacher did this all the time and i loved it

  • Can any one clear my doubt...At 24:45 student asks doubt and professor answers it,but i couldn get the sense of what they both are talking about..

  • | |

    First time ever used verticle bar key :D

  • @MrValzen Lol, Congratu|ations on your first |.

  • @MrValzen sameXD

  • The full textbook (704 pages) should be arriving in a few days, yay! So far I haven't had trouble with using the draft, though.

    I get the logic behind them, but writing complicated Boolean expressions can get somewhat challenging, last night I had to break a few of them down on paper to be clear about what happens, but it's fun.

  • @Lemon77UG which full texbook are you talking about? write the name or isbn number, i am also trying to learn java.

  • @Lemon77UG Name and ISBN number please.

  • I can do logic gates in minecraft, but not this xD

  • damn, how many candies are there in that bag and where I can buy it?

  • "Get your hands off my Pi"

  • damn the professor looks like the ultimate nerd

  • LOL @ the kid that asked where the bar is on the keyboard!! LOL!! first time mehran declines to reward a question with candy

  • I thought stanford is for super geniuses, but even i understand this.

  • man java looks almost like c++! I am newbee!

  • @Mr polymorphist - I like that comparison, very good way of putting it. All you need to do is sort out those unnecessary abbreviations, taking the "o" out of "not".. Jesus, how much time does that save you every day at the expense of everyone who has to read it. Have to decode it first. Jesus.

  • @groovyfuncat I think he did that because of character limit...

  • 'Cascading if'...does it mean that if my score is 90 I could still get a C?(if score>=70; printLn("C");

  • @stringiamociLaMano nope, cuz the first IF is true, so the program does what's inside this IF only and then it leaves the cascading if.

  • For those of you that may be having difficulty finding the || (vertical bar key), do

    SHIFT+\

  • @TheBerserkingYoYo OR? || AND? && NOT? != x(Not x), your three basic logic ports.

  • I love Stanford`s theme music, sounds like Knight Rider.

  • thanks a lot !

  • in what environment can i write these java programmes ?

  • @dorohanter eclipse

  • @dorohanter It's a Stanford version of Eclipse available here:

    see.stanford.edu/see/materials­/icspmcs106a/software.aspx

  • @MrPolymorphist lol nice analogy ;)

  • There was a boy asked question on 5:18 and he didnot get candy bar

    Poor little boy

  • @mike478911 People most likely just view the first one in the series to see what it's like.

    Either that or they just lose hope & give up!

  • @tastingo88 yeah man youre right...

  • Someone water the mop? >.>

  • you need to make video on 480p 

  • Thanks, I'll try that

  • I've downloaded "all" of the needed software that Stanford offers, but I can't get any of the programs to work. I don't know much about eclipse, only what I've learned in this class. can someone help me out and tell me how to fix this? I'm guessing that eclipse can't find some of the files it needs to run the programs.

    imgur.com /PtSl3.png

    (youtube won't let me post the link unless i put a space between the slash, just remove it and past it in your browser so you can see what my problem is)

  • Comment removed

  • @jesusminime14 you spelled GLabel wrong you scrub GLabel not Glabel duh

  • I've downloaded "all" of the needed software that Stanford offers, but I can't get any of the programs to work. I don't know much about eclipse, only what I've learned in this class. can someone help me out and tell me how to fix this? I'm guessing that eclipse can't find some of the files it needs to run the programs.

  • YOU ARE GREAT. Thanks a lot

    I WISH JIMMYR.COM AND THE NEW BOSTON WERE LIKE YOU AS THEY ARE GOOD AND BROADLY.

  • doesn't the average sign also have a different name? I remember in one of my C++ books it was called something else.

  • after watching this make me want quit working at McDonald

  • "get your hands off my PI" haha I lol'd

  • I love when he tries to wipe the board, it becomes crappier and crappier.. ;)

  • At around 1:55 Prof Mehran says that the remainder operatopr "%" doesnt work with double values. This is true in C/C++ but NOT in java. This is not to criticise the work done by the univ or the prof in any way coz they have done a real good job by putting this in public domain. I am just SCJP and this dude might be teaching java for so long. however, please check before putting any such credible info in the public domain. many ppl who shift frm C/C++ to java hv these misconceptions.

  • @MrPolymorphist but why would you want to use % with a double value?

  • @renzyq19 point is nt abt usage.. actually if u know C/C++ u might even wanna know why the hell u studied java. Saying tht Java is good coz it works on all platforms is like saying anal sex is good coz it works on all genders. point is abt providing proper info abt anythng in a public domain. And for ur usage of "%" operator on floatng values. well, i hvnt myself used it yet. bt it might be used somewhere.... mebbe for angles (modulo 360) in graphics to calculate trigonometric functions.

  • @MrPolymorphist

    not to insult your intelligence, but that comment raped my eyes, abbreviation is okay in moderation.

  • @ferret0rouge I think it was to be able to fit everything into the one comment. 10 months ago the character limit on comments was far lower.

  • @Vaughnlesterinoz I see, thanks for clearing that up =].

  • @MrPolymorphist Brilliant simile. Just brilliant.

  • @MrPolymorphist Can anyone translate this into English?

  • @MrPolymorphist More than three billion devices uses java. Among them is a little smartphone OS called android. maybe you never heard of it? Java is broadly used in many things, but not so much in making games or applications. (There are some but not many uses of java on pc). Java is also used in webservices, sending data from one system to another. etc.

  • @MrPolymorphist Learn English before you try to learn computer programming.

  • yeah!!!!! someone who knows both languages please explain. it sounds counter-intuitive to use % with a double value (to me).

  • is there a big difference between the pdf version of "the art and sience of java" book and the full original version? Will i be able to complete the course and understand all the details with the pdf preliminary draft of the book, or will i miss alot of detail if i don't read the final example of the book?

  • I love this whole opencourseware movement. Mehran is better than any professor I had at school. I just noticed...Lecture 1 has close to 200,000 views while Lecture 28 only has around 8000. Kind of sad.

  • @bcaldwellmusic He's separating the boys from the men.

  • @bcaldwellmusic epic dropout rate

  • abudaiyeh: should be

    while (stillAlive()) {  iWillLoveThisTeacher();

    }

  • @mattmanbowz

    True man! Sahami is awesome :D

  • can somebody provide a simple example in working code of the things taught here? a real life use of this stuff please

  • i have just completed the asignment 1.

    the assignment is too tough , may i have to submit it!!

  • gr8 lecture again

    no buddy tell me when to start hte assignment1 , as per the schedule i think the assignment is due , i am going to try it ......

    thanks standford and u tube and evey one

  • while (still a live)

    {

    I will love this teacher

    :)

    }

  • hahaha

  • When I had a question I was kinda sad I didn't get a candy bar so I went to the store to buy me some skittles :(

  • He says to throw your laptop away if you don't have a vertical bar symbol on a key, and then get mad at someone.  Couldn't you just map the vertical bar to some key? Geez

  • The symbol is called a pipe.

  • Watch all the videos noob

  • These classes are only around 40 minutes? I starting watching these are around 4 am, its 8:10AM. I still could go for another hour or 2. But so far hasn't really said much I don't already know, but in a good way. I'm already advanced in PHP. The Java syntax is very similar to PHP btw. This video works great to consolidate what I already know on the methodology of programming.

  • Comment removed

  • On 5 lines? I doubt it. Maby 10 E_notices. It depend how many variables you misspell and if your using deprecated functions.

  • oh by variables I meant, Array indexes. In php if you put $a[string] without the single quotes, it will assume $a['string'] and will still work, . but your error log will fill up fast. ereg is an example of a deprecated function, one should preg_match instead.

  • @FrankRizzo6662

    sounds like you don't know that much about programming either.

    let's say you wanna build a web page, that some user could see from any machine or device!

    how would you implement that in Assembly

    every language has it's own specifications

    assembly : you use the low level features but yet its too architecture specific.

    high level languages: gives a fine structured and abstracted programs instead of tons of commends to do a simple task

    interpreted languages: platform independent

  • yeah, great way to explain Cast. :)

  • This dude is really great! he makes it fun to watch and makes it very understandable.

  • mehran is madd :-))

  • Awesome work stanford, making this free is just fantastic.

  • Eh...Stanford? Any chance you could lend this guy to us for a while? You know, I haven't come across a CS class that was fun and instructive at the same time, and I've never got candy thrown at me for asking questions either, so...how much?? :-)

  • I don't think Stanford actually owns him.

  • thanks stanford, very good lectures!

  • mehran u Rock on always....;-)

  • this guy has tremendous energy his work is even more hard than the engineers ....... talking and teaching 24x7 ...after reaching home he might be very quiet.....any way he teaches better than most of the teachers who take up teaching computer programming ...... also he adds some story while teaching some examples .....presents every topic in an interesting manner.....

  • I would have liked to learn C with him. But I'm not Uni material!

  • I think anyone may watch these?

  • I lost my interest in programming due to crappy teaching in my college and a tuition ...

    prof mehran seems to bring that interest back..

    Thanks for the lectures @ stanford. :D

  • Couldn't agree more.

  • I was the exact same.

  • yea, hes awesome

  • @X3QT0R He brings sexy back to programming

  • Hilarious history lesson on boolean! :-)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more