Represent a table of student IDs and exam marks as a database in Java without using any Java API classes or methods.