@@ -34,12 +34,10 @@ You will need:
3434- Gradle 8.0 or later, or Maven 3.6.3 or later
3535- A decent text editor or IDE
3636
37-
3837## 1. Set Up the Java Project
3938
4039You can use either ** Gradle** or ** Maven** to set up your Java project:
4140
42-
4341### Create a New Gradle Java Project
4442
4543Run the following command to create a new project with Gradle:
@@ -307,9 +305,9 @@ const config = {
307305module .exports = () => config;
308306```
309307
310- Create ` main.mjs ` , the entry point of the bundle, with the following contents:
308+ Create _ main.mjs _ , the entry point of the bundle, with the following contents:
311309
312- ` main.mjs `
310+ _ main.mjs _
313311
314312``` js
315313// GraalJS doesn't have built-in TextEncoder support yet. It's easy to import it from a polyfill in the meantime.
@@ -328,7 +326,7 @@ You can choose interface names freely, but it's best to base them on the JavaScr
328326
329327Define an interface that matches the JavaScript qrcode:
330328
331- ` src /main/java/com/example/QRCode.java `
329+ _ src /main/java/com/example/QRCode.java _
332330
333331``` java
334332package com.example ;
@@ -340,7 +338,7 @@ interface QRCode {
340338
341339Define an interface for handling JavaScript Promises:
342340
343- ` src /main/java/com/example/Promise.java `
341+ _ src /main/java/com/example/Promise.java _
344342
345343``` java
346344package com.example ;
@@ -354,7 +352,7 @@ public interface Promise {
354352
355353Define a functional interface for consuming Polyglot values:
356354
357- ` src /main/java/com/example/ValueConsumer.java `
355+ _ src /main/java/com/example/ValueConsumer.java _
358356
359357``` java
360358package com.example ;
@@ -371,7 +369,7 @@ public interface ValueConsumer extends Consumer<Value> {
371369
372370Use the following ` Context ` class and interfaces to create QR codes and convert them to a Unicode string representation or an image:
373371
374- ` src /main/java/com/example/App.java `
372+ _ src /main/java/com/example/App.java _
375373
376374``` java
377375package com.example ;
@@ -421,7 +419,7 @@ If using Gradle, run the following commands to build and run your application:
421419./gradlew run --args=" https://www.graalvm.org/"
422420```
423421
424- If using Maven, run the following commands to build and run your application:
422+ If using Maven, run the following commands to build and run your application:
425423
426424``` shell
427425mvn package
0 commit comments