Nearly there!
I did do a first year digital logic course at uni myself and I think still have the textbook; I could guess at how the flip-flops work but it has been a while. But from memory the flip-flop changes based on input when its trigger is pulsed.
A quick search shows that there are 4 sets of inputs with the corresponding outputs which changes when the clock is triggered:
J K Q
0 0 no change
0 1 0 (reset)
1 0 1 (set)
1 1 toggle
and Q bar is logically not Q (the opposite)