These are chat archives for MontCode/GeneralChat

19th
Dec 2017
Lily Romano
@Lilyheart
Dec 19 2017 21:52
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
Have fun Lily! I am still working on 112 assignments LOL
Lily Romano
@Lilyheart
Dec 19 2017 22:03
Holler if you need anything
G7470
@G7470
Dec 19 2017 22:04
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
okay :)
Lily Romano
@Lilyheart
Dec 19 2017 22:07
Tell 'em I said hi <3 lol
Jonathan Herman
@lantech19446
Dec 19 2017 22:07
wuz good lily
ccz
@ccziriak
Dec 19 2017 23:00
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
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
What language, @potnoodlez_twitter ?
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:04
Java
ccz
@ccziriak
Dec 19 2017 23:04
Ah - sorry - I'm of no help there.
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:05
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
Can you paste the line where you call the toString in it?
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:19
System.out.println(list.highBidder);
Lily Romano
@Lilyheart
Dec 19 2017 23:20
What class was used to create list?
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:21
Auction
Lily Romano
@Lilyheart
Dec 19 2017 23:22
What class is the toString in?
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:22
LinkedStack
highBidder is a LinkedStack object
Randy R.
@NotTheDBA
Dec 19 2017 23:34
Hello.
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:34
hi
Randy R.
@NotTheDBA
Dec 19 2017 23:35
How is everyone this evening?
Lily Romano
@Lilyheart
Dec 19 2017 23:35
Hey Randy.
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:35
Good, thank you. How are you?
Randy R.
@NotTheDBA
Dec 19 2017 23:36
I'm doing well, thanks. Getting ready for an interview tomorrow and vacation starting Friday!
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:36
good luck!
Lily Romano
@Lilyheart
Dec 19 2017 23:36
Is highBidder a variable in the list instance of Auction?
You
Randy R.
@NotTheDBA
Dec 19 2017 23:37
@potnoodlez_twitter thanks!
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:38
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
Look up how the dot operator works to understand what you print ln is doing.
Jonathan Herman
@lantech19446
Dec 19 2017 23:40
hey lily
Nina G.
@potnoodlez_twitter
Dec 19 2017 23:41
okay!