The best way to learn is to memorize the template for words ending in (like Rāma, Śiva, Krishna). This covers the majority of nouns you will encounter.
Once you learn the table for Rama , you automatically know the tables for Vriksha (tree), Balaka (boy), and Deva (God).