[工学]An Introduction to Java Application.pptVIP

  • 0
  • 0
  • 约1.94万字
  • 约 91页
  • 2018-02-14 发布于浙江
  • 举报
[工学]An Introduction to Java Application

An Introduction to Java Application Yaoxiaoling Topic Our First java Program Output statements Variable Input statements Arithmetic operators Memory Decision-making statements Relational and equality operators Our first java Program Text out “Welcome to java programming” Talking What was wrong with your program? What will you do if we want to edit and run our java program? What is function of your program? Edit java program in notepad public class Message { /** * 这是一个 main 方法。 */ public static void main(String [] args) { /* 输出此消息 */ System.out.println(欢迎来到 Java 世界!); } } 编译和运行 Before you begin We need Java development Environment J2SE Development kit /javase/downloads/index.jsp Editor notepad editplus UltraEdit IDE Jcreator Eclipse NetBean Let us install JDK /javase/downloads/index.jsp JDK Environment Java directories bin : executable files such as java.exe javac.exe lib:java library classes files. include:local files. demo:display programs. jre: java running environment After we installed jdk…. Setting environmental variables Path variable Classpath variable Setting the Path Variable Setting the classpath Variable What the function of our program? Output a literal word Welcome to java progaramming. What we learn from this program Java program structure Output statement java program structure source file, class , method ,statement Our first java program What goes in a source file? What goes in a class files? What goes in a method files? Reading time comment Comment is used to enhance your program readability Questions: How many kinds of comment methods does Java provided? Tell us difference among these comments? Class class is a logical unit of java program. Questions: How should we declare a class? How should we name a legal identifier? What is a good classname? How should name a Java file? Reading Time Method What is feature of main method? What is function of this method? Output statement What is System.out?

文档评论(0)

1亿VIP精品文档

相关文档