请写出创建Font类型对象fn的代码,fn的属性值是 Courier字体,BOLD样式,20磅字号。

请写出创建Font类型对象fn的代码,fn的属性值是 Courier字体,BOLD样式,20磅字号。
【正确答案】:Font fn=new Font("Courier", Font.BOLD, 20); (4分)