String variable example java. You either need to use + to concatenate, or use String.