Project

General

Profile

Actions

Bug #3583

open

Defect ID: DF004

Bug #3583: Defect ID: DF004

Added by Ha Long Ha about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
Start date:
10/02/2025
Due date:
% Done:

0%

Estimated time:

Description

Defect ID: DF004

Defect Name: Invalid Print Statement Using Logical Operator

Line Number: 21

Defect Description: The code uses a logical operator with print, for example System.out.print(val && " ");, which is a type error (&& expects boolean operands) and causes a compile error.

Fixing Solution: Replace the invalid expression with string concatenation or formatted output, e.g., System.out.print(val + " "); or System.out.printf("%d ", val);.

No data to display

Actions

Also available in: PDF Atom