I'm simply trying to get a table on the right side of my text. I've tried many different packages like float, floatflt, and wrapfig, the latter got me the closest to what I wanted. My only issue at this point is that the caption says "Figure 1:" Whereas it should be a table. I can't use \begin{table} with \begin{wrapfig} since it screws things up.
Here is the full code for the table:
\begin{wrapfigure}{r}{0.24\textwidth}
\centering
\begin{tabular}{ | c || c | c | }
\hline
& a & b \\
\hline \hline
1 & 1 & 2 \\
\hline
2 & 3 & 2 \\
\hline
3 & 1 & 2 \\
\hline
\end{tabular}
\caption{Table representation of the DFA in Figure \ref{fig:dfa_example}}
\label{DFA_table}
\end{wrapfigure}

As a side note, would it also be possible to get the table to be a little higher than the text (top margin)?


