"Now, do we have the same problem getting all the energy out of the inductor ?" NO SWEAT. Just open the circuit when the current in the inductor is zero and the voltage across the capacitor is maximum. No current is flowing and nothing will happen except that the charge will remain on the capacitor. This is exactly the way many switched circuits (resonant radar transmitter modulators, for not too common example) work. Ed Phillips