\begin{tabular}{|l|l|} \hline one line & \shortstack{two\\ lines} \\ \hline XX & YYY \\ \hline \end{tabular}