basic java tutorial

Discussion in 'Archives' started by Ur Account trainer, Nov 15, 2009.

basic java tutorial
  1. Unread #1 - Nov 15, 2009 at 5:51 AM
  2. Ur Account trainer
    Joined:
    Sep 22, 2008
    Posts:
    134
    Referrals:
    0
    Sythe Gold:
    0

    Ur Account trainer Active Member
    Banned

    basic java tutorial

    Hello and welcome to a basic java tutorial. I will show and explain how to make an extremely basic java program. The programming were will be creating is a quick out print to the console. I will be creating more advanced java tutorials later on.

    So first were are going to make a new class, known as a new document.
    Create your packaging if you do not know what this is, this would be a great website to go http://www.jarticles.com/package/package_eng.html

    Code:
    package Start.chat;
    
     public class StartChat {
    
    } 
    That currently does nothing lets create a main method (When creating a new program in java you was always need a main method in one of your classes)
    So let’s make a main method
    Code:
    		public static void main (String args[]) {
    		} 
    And again that does currently nothing, so let’s add content into that method I’m going to make it out print onto the console.

    Code:
    System.out.println("Hello  "); 
    System.out.println("this is how to print text onto the console");  
    So are main method should look something like this

    Code:
             public static void main (String args[]) {
                  System.out.println("Hello  "); 
                  System.out.println("this is how to print text onto the console"); 
    	 } 
    So let’s put that into are full class this what it should look like

    Code:
    package Start.chat;
    
    public class StartChat {
                    
            public static void main (String args[]) {
                  System.out.println("Hello  "); 
                  System.out.println("this is how to print text onto the console"); 
    	 }         
    }
    You should go compiler it and run it (if you don’t know how just follow this
    small tutorial http://www.horstmann.com/bigj/help/compiler/tutorial.html )

    Thank you for looking at the tutorial hoped you understand ask me any questions, i will try to answer the best I can.

    I will be creating more advanced tutorials soon, how to make a gui, making a basic calculator, making gui buttons work and allot more.

    Thanks again
     
  3. Unread #2 - Nov 26, 2009 at 9:41 AM
  4. hiway_2_hell
    Joined:
    Nov 26, 2009
    Posts:
    230
    Referrals:
    0
    Sythe Gold:
    0

    hiway_2_hell Active Member
    Banned

    basic java tutorial

    to basic =p
     
  5. Unread #3 - Nov 26, 2009 at 9:43 AM
  6. hiway_2_hell
    Joined:
    Nov 26, 2009
    Posts:
    230
    Referrals:
    0
    Sythe Gold:
    0

    hiway_2_hell Active Member
    Banned

    basic java tutorial

    very good
     
< PRICES Credit Cards (With CVV) US With CVV - 3$ UK With CV | Steam IDs: How to find them|Their importance| Their affect >

Users viewing this thread
1 guest


 
 
Adblock breaks this site