Java with Jesus #1 | Programming Basics

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,533
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 19, 2012

SUPPLEMENTAL NOTES:
This series, because of a limited time frame before I leave for Arizona, is going to have to operate on what I like to call the 'trust me' basis. It might not make sense that there's a numerical value called "double" useful for storing numerical values with decimal places, but there is, and you'll have to trust me. This goes for anything else you don't understand right away.

PLEASE, give as much feedback as you like in the comments! I actually want to improve this series as I go along. If I fucked anything up, or if I skipped over something REALLY important, let me know and I will devote the first part of the next video in the series to correcting the error before moving on.

In this episode, I feel like I didn't flesh out my explanation of incrementation (i++ and so on) enough. It becomes a lot more clear once you start doing it in problems, though, so don't worry. The same goes for anything you don't necessarily understand yet. Me talking about it in theory may not be the most helpful way to explain something, but my hope is that once you see it in practice, it will make a bit more sense.

As we continue in the series, you'll get a better idea of what changes from program to program, how certain data types and loops are used (this will become especially clear when I teach 'for' loops in Episode 3), and a better sense of how everything falls together. I hope to do a variety of programming problems despite my limited board space, so after a few lengthy endavors I hope you'll start to pick up on what goes where.

Keep an eye on both the annotations on this video (make sure they're enabled for you), and the description for corrections, retractions, and additional explanation. They'll all be written down here before I can edit them into the next episode.

Required download:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
You want the Java JDK + NetBeans bundle.

Optional alternative to Netbeans:
http://www.eclipse.org/downloads/
Choose the first option.

CORRECTIONS:
The S in ShowInputDialog should not be capitalized. It is properly written as "showInputDialog"

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 48 dislikes

Link to this comment:

Share to:

Uploader Comments (MrObviouslyJesus)

  • Well, i failed right at the first one!!! It just tells me "no main class found" And I SWEAR I copied everything you wrote! you should do it in the computer and not in the board...

  • @moscas00 If you're using Netbeans, you need to specify a package name before "public class ClassName {"

    Use the project creator (second tool from the left in the Netbeans top bars), and it will do it for you.

  • Jesus, I am doing the CompCoin one, and it says remaining is already defined in main(java.lang.String[]). What did I do wrong??

  • @MrRJDemon You're probably writing "int remaning" every time you use it. You only have to write "int" once.

  • I have a problem with the CompCoin code. Everytime I write "remaining = remaining %X"

    It gives me an error because it says I already defined remaining once. I cant fix this on my own.

  • @MadMadsGamer You're probably writing "int remaining = remaining % x" instead of "remaining = remaining % x"

Top Comments

  • I can't watch this.

    NO cool jacket?

    NO cool hat?

    I'm fucking out of here.

  • Can anybody tell me what textbook he held up? I have watched this like 5 times and I know he said something about it, I just can't find it now that I actually need the information. :/

see all

All Comments (212)

Sign In or Sign Up now to post a comment!
  • Unity, anyone?

    

  • why not use blueJ?

  • instead of targating woodys son, why couldnt you have done something smaller? why not made it not public, and just have said hey woody i do not like the way you expolit ur son, but im not here too troll you im here to learn about this.Thank-you. :D.

  • Dfhvxubvhzhbdjbgk hnjudichj. Get out of here script kiddies.

  • GO FUCK YOURSELF

  • Burn in hell

  • @MrBrynUnce No thanks I'm good I solved this problem a long time ago but thanks anyways.

  • I've never watched any of your videos till today and this instantly gained a bit of respect. I want to see some machine level ternary next :P feel free to "make" your own instruction sets and modeled processor.

  • @sackoo11 look at your imports, the line where it says import java(x)..... one of those there is unnecessary and should be removed.

  • @TheMrDtrain In Java, there are a varying amount of data types. whole numbers are called byte (1-255), int (256-2147483647) and long (2147483647-something, can't be asked to type it out.)... What you are however.. is giving it a float, or double. which are decimal numbers. So the program is expecting something, but getting another. If you want some more info, message me and I'll give you a guide on how to have either whole numbers or decimals.

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