Search:

Type: Posts; User: EmSaint

Search: Search took 0.09 seconds.

  1. Replies
    1
    Views
    5,810

    Why do we use the "this" keyword?

    Hi guys,

    I am studying for a test, and one of sections is on inheritance.

    And I really don't understand how the "this" keyword works.

    From what I have read, this just references the active...
  2. Replies
    2
    Views
    2,902

    Populate an Object with Other Objects

    I am using inheritance in a pretty standard exercise here.

    I have a Card class and then a few classes that extend the Card class of different Card Types.

    I however have a different type of...
  3. Replies
    3
    Views
    2,993

    Looping with an ArrayList

    for(int i = 0; i < songList.size(); i++)
    {

    ui.displaySongs(songList.get(i), songList);

    }

    SongList is an ArrayList.
  4. Replies
    1
    Views
    1,556

    Accessability/Visability Private

    This is part of a assignment, I was instructed to make a variable in a class 'A' private. Class 'B' extends class 'A' and class B uses the variable in class A that I declared private. Now I am going...
  5. Replies
    2
    Views
    2,361

    [SOLVED] Re: Command Line Argument Help

    Thank you very much.
  6. Replies
    2
    Views
    2,361

    [SOLVED] Command Line Argument Help

    if(args.length <= 0)
    System.out.print("Hello World");

    else if (args.length > 0)
    {
    System.out.print("Hello ");
    for (int i = 0; i <...
  7. [SOLVED] Re: How to Put Spaces in the Output of Passed Arguments?

    Thanks guys that worked fine.
  8. [SOLVED] Re: How to Put Spaces in the Output of Passed Arguments?

    Well is that the only way to do it? This is part of an instructed assignment (of course) and the directions called for an output of "Hello whatever input" if a user were to pass in "java Hello...
  9. [SOLVED] How to Put Spaces in the Output of Passed Arguments?

    When passing in an argument using the cmd console, such as "java Hello Shook Ones" how would you get the output to contain spaces in between the args?

    Here is some of my code:


    if(args.length...
Results 1 to 9 of 9