我是新来的Java和无法弄清楚如何格式化我的代码是这样的: 字体“宋体”字体大小“9”大胆如何在JAVA中设置字体样式和大小?
我想整个段落的格式化文本。我真的很感谢帮助。提前致谢!
下面是我的代码:
public class H_1
{
//--------------------------------------------------------------------
// main
//--------------------------------------------------------------------
public static void main (String[] args)
{
Graphics
// Declare variables
// int someInt;
// double someReal;
// String someString;
Scanner keyboard = new Scanner(System.in); // Connect to keyboard
// Show application header
System.out.println("Welcome to my Application!");
System.out.println("--------------------------\n");
// Display output
System.out.println("I'm singing in the rain");
System.out.println("Just singing in