how do i create java code that randomly assign numbers to letters, sum them, display them and store them in a database

how do i create java code that randomly assign numbers to letters,

With Random and a HashMap I suppose.

sum them,

"+" operator.

display them

A console or a Swing GUI

and store them in a database

JDBC

commented: you put a lot of effort in this response +5