Search This Blog

Friday, January 21, 2011

Getting Set Up

Hey everyone! My first Java tut is finally up. I hope to go through this book that I got, and wanted to make a video of all the programs in it. This first video is for downloading and installing everything so we're all set to program.




Link to video: 
http://www.youtube.com/watch?v=kYlHGjODAfc
Here are all the links:
http://www.oracle.com/technetwork/jav...
http://www.bluej.org/download/downloa...
http://faculty.cs.wwu.edu/martin/Soft...

source code:


public class Main{ 

     public static void main(String[] args) {
           System.out.println("test"); 
     }
}

3 comments:

  1. hey sir...
    been wondering about the coding..
    so my lect taught me to always start with
    import java.io.*.;
    public static void main (String[]args){
    System.out.println("test");
    }
    }

    in your video you didn't mention about it..
    the question is
    why didn't u include it?
    what it does?
    what if i don't do it?
    plus we're using command prompt and txt
    does import java.io.*.;
    is only for command prompt?
    thank in advance :D

    ReplyDelete
    Replies
    1. The import statement is unnecessary for the code that you have now, but your instructor might have plans to use Java io to deal with input from the user. That main method line is important because that's where Java starts to interpret your code. That is started automatically when you run your program. The system.out line just prints out test. It is just there so you know your program works. You don't have to have the import statement or the print statement. It has nothing to do with using NotePad and command prompt. It's just how your teacher is teaching you. I pretty much stopped posting videos on this blog, so you should just look at my YouTube channel for new videos. If you have any other questions, feel free to ask.

      Delete
    2. thanks a bunch..that clear most of my question :)
      i've been using all your tutorial and loved it...your tutorial certainly helps me understand what i don't when my instructor taught me XD
      thank you :)

      Delete