These are chat archives for MontCode/GeneralChat

19th
Dec 2017
Lily Romano
@Lilyheart
Dec 19 2017 21:52 UTC
Any fun coding projects? I finished my last final today and my brain is fried. So I'm taking the night off. BFF is over and we are planning bideo games
Nina G.
@potnoodlez_twitter
Dec 19 2017 22:01 UTC
Have fun Lily! I am still working on 112 assignments LOL
Lily Romano
@Lilyheart
Dec 19 2017 22:03 UTC
Holler if you need anything
G7470
@G7470
Dec 19 2017 22:04 UTC
Besides work nonsense, not much going on tonight. Wanted to make some progress on at least one of my projects, but parents have requested I help them clean their house. So, that's where I'll be instead, lol
Nina G.
@potnoodlez_twitter
Dec 19 2017 22:04 UTC
okay :)
Lily Romano
@Lilyheart
Dec 19 2017 22:07 UTC
Tell 'em I said hi <3 lol
Jonathan Herman
@lantech19446
Dec 19 2017 22:07 UTC
wuz good lily
ccz
@ccziriak
Dec 19 2017 23:00 UTC
Hey all - got stuck in holiday Mall traffic on the way home - disadvantage of living 5 min away.
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:00 UTC
I am having trouble getting my stack to print to test my program. My toString is in another class. It prints out the text I wrote but it is blank after instead of printing items on the stack.
ccz
@ccziriak
Dec 19 2017 23:03 UTC
What language, @potnoodlez_twitter ?
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:04 UTC
Java
ccz
@ccziriak
Dec 19 2017 23:04 UTC
Ah - sorry - I'm of no help there.
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:05 UTC
I just ran the debugger and it is coming back null even though it shouldn't be null
Lily Romano
@Lilyheart
Dec 19 2017 23:16 UTC
Can you paste the line where you call the toString in it?
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:19 UTC
System.out.println(list.highBidder);
Lily Romano
@Lilyheart
Dec 19 2017 23:20 UTC
What class was used to create list?
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:21 UTC
Auction
Lily Romano
@Lilyheart
Dec 19 2017 23:22 UTC
What class is the toString in?
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:22 UTC
LinkedStack
highBidder is a LinkedStack object
Randy R.
@NotTheDBA
Dec 19 2017 23:34 UTC
Hello.
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:34 UTC
hi
Randy R.
@NotTheDBA
Dec 19 2017 23:35 UTC
How is everyone this evening?
Lily Romano
@Lilyheart
Dec 19 2017 23:35 UTC
Hey Randy.
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:35 UTC
Good, thank you. How are you?
Randy R.
@NotTheDBA
Dec 19 2017 23:36 UTC
I'm doing well, thanks. Getting ready for an interview tomorrow and vacation starting Friday!
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:36 UTC
good luck!
Lily Romano
@Lilyheart
Dec 19 2017 23:36 UTC
Is highBidder a variable in the list instance of Auction?
You
Randy R.
@NotTheDBA
Dec 19 2017 23:37 UTC
@potnoodlez_twitter thanks!
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:38 UTC
I dont think so. My Java is bad lol. highBidder is the stack. It prints out the text in my toString so it is weird

@Override
public String toString()

//toString method - returns the items on the stack
{
String s = "The stack is \n";

LLNode<T> currNode = top;

while(currNode != null)
{

  s = s + currNode.getInfo() + "\n";
  currNode = currNode.getLink();

}

return s;

}

It prints out "The stack is "
then according to the debugger it is saying currNode IS null
Lily Romano
@Lilyheart
Dec 19 2017 23:40 UTC
Look up how the dot operator works to understand what you print ln is doing.
Jonathan Herman
@lantech19446
Dec 19 2017 23:40 UTC
hey lily
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:41 UTC
okay!