java line switched