Skip to content

Bug Report for Range-Sum-Query-Immutable: Java template includes missing import javafx.util.* #5452

@BastianVal

Description

@BastianVal

Bug Report for https://neetcode.io/problems/range-sum-query-immutable

Summary
When submitting/executing a Java solution for Range Sum Query, compilation fails immediately with:
package javafx.util does not exist
This happens even when the solution itself is correct

Steps to reproduce

  1. Open Range Sum Query - Immutable on NeetCode
  2. Select Java as the language
  3. Paste a valid solution and run/submit
  4. Observe compilation error

Actual behavior

Main.java:-4: error: package javafx.util does not exist
import javafx.util.*;
^
1 error

Environment
Language: Java
Browser / OS: Brave, Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions