Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions lec3/examples/PassByValueFigure.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ public Walrus(int w, double ts) {
tuskSize = ts;
}

public String toString() {
/* For those who are testing in Java Visulaizer toString() function creates problem
* it either throws timeout or keeps running without any output
*
* Removing this functon only for sake of visualizing will helps begginers instead banging thier heads*/

/* public String toString() {
return String.format("weight: %d, tusk size: %.2f", weight, tuskSize);
}

/*
* I didn't find use of this function simply comment out or remove this function again this creates confusion
* for begginers who are now to OOP
*/
public void lose100lbs() {
weight -= 100;
}
}*/
}
}
}