How to separate out individual sql statements from Oracle SQL script for execution from java code
What creates your sql script file? Is the sql script file creation modifiable?

If you can modify the sql script file creation, the easiest way is to append your own separator characters to your script between the statements. (Comments should be a good idea)

If not, if you're just receiving a bunch of sql or pl/sql statements in a unmodifiable-source plain text file, then you should code your own parsing algorithm.
You must keep in mind that EVERY sql statement end with semicolon (;), but since PL/SQL blocks can contains several sql statements they must end with a forwarded slash (/) by itself in a new line.

The confusing part is that some SQL statements are, in fact, stored PL/SQL blocks, like CREATE PROCEDURE or CREATE TRIGGER (complete list in documentation book "Oracle® Database PL/SQL Language Reference" : http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/sqlstatements.htm#LNPLS99979 )

(e.g. 


ALTER, SELECT, DROP, GRANT etc.. statements end with semicolon ;
CREATE TABLESPACE, CREATE USER, CREATE TABLE, etc statements end with semicolon ;
CREATE PROCEDURE, CREATE PACKAGE, CREATE TRIGGER, etc statements end with slash /
DECLARE, BEGIN (annonymous pl/sql blocks) statements end with slash /


)

Regards