meetingprinter.java
来自「the lab1 from trimester one 2008」· Java 代码 · 共 52 行
JAVA
52 行
/* Code for Assignment 1, COMP 102 * Name: * Usercode: * ID: *//** A very simple program that prints out a name in two different ways*/public class MeetingPrinter { /** Print a nametag with your name inside a box made of asterisks */ public void printNameTag() { String name = "George Bush"; System.out.println("*********************************"); System.out.println("* *"); System.out.println("* HELLO, my name is *"); System.out.println("* *"); System.out.println("* " + name + " *"); System.out.println("* *"); System.out.println("*********************************"); } /** Print out a reminder of a speaker's presentation time */ public void printNotice(String name, int time) { System.out.println(); System.out.println(name + ":"); System.out.println("Your presentation will be at 7:" + time + " for three minutes"); } /** Print out some information about yourself. * (This will help the lecturer to know the background of the students in * the course.) */ public void printIntroduction() { System.out.println(" <my name> "); System.out.println("I have/do not have access to a computer at home."); System.out.println("My favourite computer game is .... / I don't play computer games"); System.out.println("A computer application I have used a lot is "); System.out.println("I have done some/lots/not done any computer programming before "); // if you have done any programming..... System.out.println("I learned some/did not learn any computer programming at school "); System.out.println("The programming languages I have used include "); // anything else that it my be useful for us to know... }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?