[Q#35618451][A#35618510] Cannot figure out how to print toString
https://stackoverflow.com/q/35618451
I have tried all that I have found on here to return result after completion of input. Ive done what my book has shown me to do but I am not getting a result. Just a nudge in the right direction would be helpful.
Answer
https://stackoverflow.com/a/35618510
You are no printing the object anywhere. Print the object
APIzation
System.out.print(sb);
package com.stackoverflow.api;
public class Human35618510 {
public static void printObject(Object sb) {
System.out.print(sb);
}
}
package com.stackoverflow.api;
/**
* Cannot figure out how to print toString
*
* @author APIzator
* @see <a href="https://stackoverflow.com/a/35618510">https://stackoverflow.com/a/35618510</a>
*/
public class APIzator35618510 {
public static void figure(int sb) throws Exception {
System.out.print(sb);
}
}