My code is as below. Last column line is splitted when I leave space between the rows. How can I get a solid vertical line? Please reply
\begin{table}[h!]
\caption{\textbf{$\alpha=10; U=1; q_u=10; q^{*}=0.3; K_0=0.41; \mu_1=\mu_2=0.5; G_m=0.1$
}}
\begin{center}
\begin{tabular}{|p{4cm}|p{5cm}|p{5cm}|} \hline
\hspace{4cm} {\textbf{Applied Pre-stress}} & \textbf{Equivalent Shear Modulus , $G_e$ , considering Confinement effect} &\textbf{Equivalent Shear Modulus , $G_e$ , without considering Confinement effect}\\ \hline
0 & 0.318921 & 0.32016 \\ & \\
0.2 & 0.932458 & 0.935286\\ & \\
0.4 & 1.473396 & 1.476634 \\ & \\
0.6 & 1.997815 & 2.003647\\ & \\
0.8 & 2.517339 & 2.524832\\ & \\
1.0 & 3.033942 & 3.043077 \\ \hline
\end{tabular}
\label{t2}
\end{center}
\end{table}
Best Answer
Don't use line breaks (
& \\
) in tables.