Computer Science, asked by sankaruma1704, 8 months ago

class TestClass
{
int i;
public TestClass(int i) { this.i = i; }
public String toString()
{
if(i == 0) return null;
else return ""+i;
public static void main(String[] args)
TestClass t1 = new TestClass(0);
TestClass t2 = new TestClass(2);
System.out.println(t2);
System.out.println(""+t1);
}}​

Answers

Answered by arnavsingh2354
3

Answer:

rong question and Mark me branlist

Similar questions