How to determine case in German
Can you substitute ‘he’ or ‘him’ for the noun?

—Ich kaufe ____ Tisch

—I buy the table.
—I buy him. therefore click:

HIM

—____ Mann kauft den Tisch.
—The man buys the table.
—He buys the table. therefore click:

—HE