Supplying parameters in Interpreted queries using JDBC

Hi there, was trying to write an interpreted query in Java with JDBC.

I had 3 parameters and supplied the values into the query. But I seem to be running into an error in IntelliJ saying that my last parameter is NULL. Does anyone know why this might be happening? Thanks in advance!

Query taking in 3 parameters:

Supplying 3 input parameters as well as the query itself:

Error I get when I try to run the query:

Hi, the code supplied seem to be expecting 3 parms, two VERTEX and one INT.
Your code seems to be passing in 3 STRINGS and queryBody that I am assuming is a STRING.

Can you provide more context?