Java Task : MainAtomic2SIn1AIn1Out