list files in a package in ubuntu

The below command can be used to list files in a package in Ubuntu

apt-file list <package-name>

or

dpkg -L <package-name>

for example,

apt-file list openjdk-8-doc

or

dpkg -L openjdk-8-doc