WinkyCode's Profile User Rating: -----

Reputation: 9 Worker
Group:
Members w/DIC++
Active Posts:
156 (0.12 per day)
Joined:
23-February 11
Profile Views:
4,083
Last Active:
User is offline Jan 04 2014 06:41 AM
Currently:
Offline

Previous Fields

Country:
SE
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Volkswagen
Dream Kudos:
0

Latest Visitors

Icon   WinkyCode thinking about status...

Posts I've Made

  1. In Topic: Args or arguments, is it any difference?

    Posted 18 Oct 2013

    View PostRyano121, on 17 October 2013 - 09:31 PM, said:

    Remember that the main method is really no different to any other method in base thinking. As long as the method signature is public static void main(String[]) (which it is regardless of what you name the variable) the compiler won't care at all.

    Defining main is no different to defining any other method. The only special thing about main is it becomes the method that the compiler looks at to define the entry point for your program. It's just like any other method where you can name you parameters anything you want (although remember that variable names should be as descriptive as possible).


    Thank you. Yes, now I have tried with different variation after the ...String[].... Here is an simple example
    public class Hello_56 {
    public static void main(String[] potato)
    {
    System.out.print("\nHello\n");
    }
    }
    


    As a n00b, I bow and thanking the seniors in this area. Thank you so much!

    As far as solution goes, look at this
    ...
    public static void main(String[] anyThingGoes){
    }...
    
    

    You can in theory use any name after the String[] as long as is not a keyword. But the accepted practice is to use args.

    :scooter:
    WinkyCode
    Riding for knowledge
  2. In Topic: Args or arguments, is it any difference?

    Posted 18 Oct 2013

    View Postandrewsw, on 17 October 2013 - 09:21 PM, said:

    You can call it args, arguments.. or potatoes. It is the name given to the String array that contains the command-line arguments that main() is automatically supplied with. Call it args though: there is no reason to break with an accepted practice.


    Ah, thank you. Now I understand it a bit better. Some books I have read on my native tongue started to change it back and forth and I did not understand why. Now I understand and one question mark is away. Big thank you!

    View Postmodi123_1, on 17 October 2013 - 09:22 PM, said:

    If I remember right - they are just command line arguments.. so you can name that variable what every ou like.

    http://docs.oracle.c...mdLineArgs.html


    Thank you. Also, thank you for the link. It gave some good information. :)
  3. In Topic: Computer Science Book Suggestions

    Posted 22 Aug 2013

    View Postmacosxnerd101, on 21 August 2013 - 07:32 AM, said:

    Those are probably better for the Java forum discussion! Remember that the CS forum is for more theory-specific discussion. :)/>


    Thank you for clearing that out :bigsmile: . I am currently not reading a computer science course due some technical issue. I forgot to send in something in time :sweatdrop: . Anyhow, my course at the local technical university is on hold for one year.

    Yeah, I have only read Java books yet. I thought I should add a push to the thread, hoping for a snowball effect.
  4. In Topic: Computer Science Book Suggestions

    Posted 20 Aug 2013

    My two books that is my favorite when learning Java is:
    • Sams Tech Yourself Java in 21 days by Rogers Cadenhead, sixth edition
      Straight on, write these type of code in order to achieve that output.
    • Ivar Horton's beginning Java, Java 7 edition
      More in depth of Java. Something I read when I mostly just want to read a good book on Java and time to time clink down the example code.


    Other then that, Microsoft Press Start Here! series is also good.
  5. In Topic: Re-installed computer only to find out Outlook mail is gone.

    Posted 12 Aug 2013

    I have contacted the ISP and they have no idea. Figures.

    I will pull the drive and use an other HDD to install the system so at least my father can use the system.

My Information

Member Title:
D.I.C Head
Age:
26 years old
Birthday:
June 15, 1988
Gender:
Location:
Sweden, Nacka
Interests:
Books about programming, learning programming Java, JavaScript, HTML and looking into C# (any diff between C, C++ and C# anyone?)
Full Name:
Leopold H Birkholm
Programming Languages:
Java, C#

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://leopoldbirkholm.blogspot.com/
Yahoo:
Yahoo  leopoldbirkholm@yahoo.se
Skype:
Skype  leopold.birkholm

Friends

WinkyCode hasn't added any friends yet.

Comments

WinkyCode has no profile comments yet. Why not say hello?