-16

Is it possible to attach code here?

Below is the copy pasted version of the code. // Your First Program

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!"); 
    }
}
3
  • 1
    Copy-pasted code is fine, but I'm curious - what are you running into when you attempt to do that? There are messages that a user would get if their question is just code...
    – Makoto
    Commented Nov 12, 2021 at 22:33
  • 1
    Are you proposing that it should be possible to run the code (there are some meta posts with such proposals) or not? Commented Nov 12, 2021 at 23:21
  • 1
    If you mean runnable code, then see this question. If that's not what you mean, then you already answered your own question by posting this. Commented Nov 12, 2021 at 23:21

1 Answer 1

1

Just copy paste the parts you need to put here, or if you are using HTML, CSS, or JavaScript you can add a snippet with Ctrl + M. Also, if you have "```" to open a code block, you can add the language for syntax highlighting, such as

```java
class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
```

Not the answer you're looking for? Browse other questions tagged .