n*(n+1)'s Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
26 (0.05 per day)
Joined:
13-September 13
Profile Views:
242
Last Active:
User is offline Feb 07 2015 12:17 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   n*(n+1) has not set their status

Posts I've Made

  1. In Topic: Reading File to String with Stdin redirection

    Posted 6 Feb 2015

    Ahhhhhhh, I know what you mean now. I was confusing input/output redirection with passing command line parameters. You're the best!
  2. In Topic: Reading File to String with Stdin redirection

    Posted 6 Feb 2015

    Thanks for the reply, but it seems that the statement
     String filePath = console.nextLine();
    
    creates a string from the first line of the file being input. For instance, if input.txt's first line were "this is the first line", filePath would be "this is the first line". The remainder of the code would then create a file named "this is the first line." What I'm trying to do is create a file with input.txt. So I would need something that would be equivalent to
    Scanner file = new Scanner(new File("input.txt"));
    
    without the "input.txt." I'm not even sure if that's possible, I could be misunderstanding instructions.

    The actual instructions state that I should input two file names as command line parameters. The program should not prompt the user to enter file names. And the program should be run via the command line "java programName input1.txt, input2.txt."

    I was interpreting this as not hardcoding input names. Is that possible?
  3. In Topic: Push linked list pointer problem

    Posted 30 Jan 2015

    Sir,

    I thank you for your patience!
  4. In Topic: Push linked list pointer problem

    Posted 29 Jan 2015

    View PostSkydiver, on 29 January 2015 - 09:23 AM, said:

    View Postn*(n+1), on 28 January 2015 - 11:10 AM, said:

    Sorry for the multiple posts, I tried editing the previous but it wouldn't let me use a certain image extension. Then, I wasn't able to edit at all. But this site clearly explains what happens in memory when doing a push() function with JackOfAllTrades code: http://cslibrary.sta...dListBasics.pdf on page 15. It's called Correct Push() drawing.
    Can anyone explain with the same terms of that drawing, what was happening with what I was trying to do? Help is appreciated, I'm just trying to grasp what is going on.

    I hope this helps with your understanding...
    WrongPush.png



    This helps significantly. Thank you for the illustration. I was picturing head within WrongPushTest() pointing to the node containing one. Now I see how it works. Does the node containing one still exist after WrongPush() executes?
  5. In Topic: Push linked list pointer problem

    Posted 28 Jan 2015

    Sorry for the multiple posts, I tried editing the previous but it wouldn't let me use a certain image extension. Then, I wasn't able to edit at all. But this site clearly explains what happens in memory when doing a push() function with JackOfAllTrades code: http://cslibrary.sta...dListBasics.pdf on page 15. It's called Correct Push() drawing.
    Can anyone explain with the same terms of that drawing, what was happening with what I was trying to do? Help is appreciated, I'm just trying to grasp what is going on.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

n*(n+1) hasn't added any friends yet.

Comments

n*(n+1) has no profile comments yet. Why not say hello?