They still have U-Boats. In fact they produce Israel’s submarine fleet....
They manufacture a great deal of first class military hardware and when considering a major military conflict, a strong industrial base is much more important than a current inventory. Germany has a long history of using the resources of potential adversaries to test and perfect military equipment and concepts for their own purposes. An interesting book for anyone with spare time would be “The arms of Krupp” by William Manchester
They have 6 U-boats NONE of which are currently seaworthy.
Yes, you read that right.