3.3.6: Battleships Move Save Submit + Continue RUN CODE | TEST CASES ASSIGNMENT DOCS GRADE MORE 5 points Status: Not Submitted C 4 Fill in the move method for the Battleship class. It takes one parameter, a boolean indicating if it is safe to move forward. If it is safe to move forward, the position of the ship should increase by 5. If it is not safe to move forward, the position of the ship should decrease by 5. 1 public class BattleshipTester 2-{ 3 public static void main(String[] args) { // Create objects Battleship submarine = new Battleship("Submarine", 4); Battleship carrier = new Battleship"Carrier", 10); 8 9 // Check initial positions 10 System.out.println(submarine); 11 System.out.println(carrier); 12 13 13 14 // Test: Safely move submarine 15 System.out.println("Submarine cleared to proceed"); 16 submarine.move(true); 17 System.out.println(submarine); 18 19 20 // Test unsafe to move carrier 21 System.out.println("Carrier NOT cleared to proceed"); carrier.move(false); System.out.println(carrier); }