 During the final months of the war , New Jersey was overhauled at Puget Sound Naval Shipyard , from which she sailed 4 July for San Pedro , Pearl Harbor , and Eniwetok bound for Guam . Here on 14 August she once again became flagship of the 5th Fleet under Admiral Spruance . Brief stays at Manila and Okinawa preceded her arrival in Tokyo Bay 17 September , where she served as flagship for the successive commanders of Naval Forces in Japanese waters until relieved 28 January 1946 by Iowa ( BB @-@ 61 ) . As part of the ongoing Operation Magic Carpet New Jersey took aboard nearly a thousand homeward @-@ bound troops with whom she arrived at San Francisco 10 February . 
