how to output a score in a window of its own java console code example
Example 1: how to change the title of the console in c#
///Set console Title
Console.Title = "Insert Console title";
Example 2: how to write something in the pyton console
print("Hello World!")
Example 3: how to show the hex detail of a file in java
//Just some image on my hard drive
File file = new File("C:\\Users\\%username%\\Pictures\\Memes\\What_If_I_Told_You.jpg");
StringBuilder builder = new StringBuilder();
try {
FileInputStream fin = new FileInputStream(file);
byte[] buffer = new byte[1024];
int bytesRead = 0;
while((bytesRead = fin.read(buffer)) > -1)
for(int i = 0; i < bytesRead; i++)
builder.append(String.format("%02x", buffer[i] & 0xFF)).append(i != bytesRead - 1 ? " " : "");
} catch (IOException e) {
e.printStackTrace();
}
System.out.println(builder.toString());