i have a simple code that prints a 10x10 grid
im trying to use unicode to change the grid from showing a "." for each tile on the grid
public class Array{
public static void main( String[] args ) {
//Setup Game Data
int colSize = 10;
int rowSize = 10;
String floorTile = ". ";
//Game Loop
//Draw Game Scene
for(int y=0; y < rowSize; y++){ //start outer for-loop (rows)
for(int x=0; x < colSize; x++){ //start inner for-loop (columns)
System.out.print(floorTile); //draw floor tile
} //end inner for-loop (x-axis)
System.out.print("\n"); //new line for next row
}
//Get Player Input
//Execute Player Action
//Check Win Condition
//Execute Monster Action
//Check Lose Condition
}
}
when i change String floorTile = ". "; to use a unicode character all it prints out in a "?" for the tile now
is there a way to import unicodes so are displayed when printing?
I am usint Notepad++ for code and gitbash for compiling and running
any advise on what im doing wrong or what i can change to have the unicode displayed?