# JavaNotebook

"JavaNotebook" is used for `.java` files.

{% hint style="danger" %}
**JavaNotebook** will not run correctly unless you install [JDK](https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html). It is also in heavy development, so please report bugs on our GitHub page.
{% endhint %}

## Usage

### Setup

```javascript
const Nodebook = require('nodejs-notebook');

const main = new Nodebook.JavaNotebook('Main');
```

{% hint style="info" %}
Nodebook will automatically capitalize lowercase files. Please do your own research if you are wondering why.
{% endhint %}

{% hint style="warning" %}
Classes are **not automatically created**. We may change this in the future.
{% endhint %}

**note(code)**

Insert some code.

```javascript
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nodebook.js.org/jvm/java.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
