i wrote those codes and when i run them the color not appear in my console and my jdk is 20 and my NetBeans is 21 and i don’t know why it isn’t working really i need it to work.
package com.mycompany.shaz;
public class Shaz {
final static String red="u001b[31m";
public static void main(String[] args) {
System.out.println(red+"Hello World!");
String greenBold = "33[32;1m";
String reset = "33[0m";
System.out.println("before" + greenBold + " green " + reset + "after");
}
}
i tried to fix it but i didn’t find any tutorial to fix it because i don’t know what is the problem
5