1 / 36

Introduction to Computers & Java

Introduction to Computers & Java. Joe McCarthy. Outline. Introduction to Computers Introduction to Computer Programming Introduction to Java. Computers. Computer Hardware. Computer Hardware. Computer Software. Computer Software.

Télécharger la présentation

Introduction to Computers & Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Computers & Java Joe McCarthy CSS 161: Fundamentals of Computing

  2. Outline • Introduction to Computers • Introduction to Computer Programming • Introduction to Java CSS 161: Fundamentals of Computing

  3. Computers CSS 161: Fundamentals of Computing

  4. Computer Hardware CSS 161: Fundamentals of Computing

  5. Computer Hardware CSS 161: Fundamentals of Computing

  6. Computer Software CSS 161: Fundamentals of Computing

  7. Computer Software CSS 161: Fundamentals of Computing

  8. Note: program must be loaded into memory in order to execute CSS 161: Fundamentals of Computing

  9. Computer Memory CSS 161: Fundamentals of Computing

  10. Computer Memory Alternate perspectives: Key attributes: addressable / labeled locations that can store things CSS 161: Fundamentals of Computing

  11. Computer Disk(s) CSS 161: Fundamentals of Computing

  12. Computer Disk(s) Alternate perspectives: CSS 161: Fundamentals of Computing

  13. Hierarchy of Memory Variables? [CSS 422 and CSS 430 go into much further depth] CSS 161: Fundamentals of Computing

  14. Hierarchy of Memory • Variables: • Speed • Cost • Size • Volatility [CSS 422 and CSS 430 go into much further depth] CSS 161: Fundamentals of Computing

  15. CSS 161: Fundamentals of Computing

  16. Fundamentals of Computing CSS 161: Fundamentals of Computing

  17. Fundamentals of Computer Programming CSS 161: Fundamentals of Computing

  18. Fundamentals of ComputerProgramming • What is a program? CSS 161: Fundamentals of Computing

  19. Fundamentals of ComputerProgramming • What is a program? • What is programming? CSS 161: Fundamentals of Computing

  20. Fundamentals of Computer Programming • What is a program? • What is programming? • What is a computer program? CSS 161: Fundamentals of Computing

  21. Fundamentals of Computer Programming • What is a program? • What is programming? • What is a computer program? • What is computer programming? CSS 161: Fundamentals of Computing

  22. CSS 161: Fundamentals of Computing

  23. FirstProgram.java javac FirstProgram.class java CSS 161: Fundamentals of Computing

  24. CSS 161: Fundamentals of Computing

  25. [In Mac OS X Terminal window] d-173-250-140-5:Code joe$ ls FirstProgram* FirstProgram.java d-173-250-140-5:Code joe$ javac FirstProgram.java d-173-250-140-5:Code joe$ ls FirstProgram* FirstProgram.class FirstProgram.java d-173-250-140-5:Code joe$ java FirstProgram Hello reader. Welcome to Java. Let's demonstrate a simple calculation. 2 plus 2 is 4 d-173-250-140-5:Code joe$ CSS 161: Fundamentals of Computing

  26. [In Mac OS X Terminal window] d-173-250-140-5:Code joe$ ls FirstProgram* FirstProgram.java d-173-250-140-5:Code joe$ javac FirstProgram.java d-173-250-140-5:Code joe$ ls FirstProgram* FirstProgram.class FirstProgram.java d-173-250-140-5:Code joe$ java FirstProgram Hello reader. Welcome to Java. Let's demonstrate a simple calculation. 2 plus 2 is 4 d-173-250-140-5:Code joe$ Program [only] computes 2 + 2 = 4.How can we make this more general? CSS 161: Fundamentals of Computing

  27. CSS 161: Fundamentals of Computing

  28. Java Programs CSS 161: Fundamentals of Computing

  29. CSS 161: Fundamentals of Computing

  30. Java • Goal: • Write once, run anywhere • JDK: Java Developers Kit • JRE: Java Runtime Environment • Editions • SE: Standard Edition • EE: Enterprise Edition • ME: Micro Edition (mobile, embedded) • Embedded: flash memory, closed systems • Versions • 1.0 (1992), .. 1.6 (2006), 1.7 (2011) CSS 161: Fundamentals of Computing

  31. Downloading Java [optional] • http://www.java.com/getjava/ • Current: Version 7 update 7 (1.7u7) • On Mac, requires Mac OS X 10.7.3 or higher • Can also use Version 6 update 35 (1.6u35) • http://www.java.com/en/download/manual_v6.jsp • Supported thru February 2013 • We will be writing (developing) Java code, so we want JDK • Which includes JRE CSS 161: Fundamentals of Computing

  32. CSS 161: Fundamentals of Computing

  33. Integrated Development Environments(IDEs) • Programming tools • Edit text (code) + compile + run • Graphical representations of components • We’ll be using BlueJ, but you can use others bluej.org eclipse.org netbeans.org CSS 161: Fundamentals of Computing

  34. Downloading BlueJ [optional] http://www.bluej.org/download/download.html CSS 161: Fundamentals of Computing

  35. UWB CSS Labs http://www.uwb.edu/css/facilities CSS 161: Fundamentals of Computing

  36. Next time (Wednesday) • Get textbook • Read: • Absolute Java, Section 1.1-1.2 • Java: An Introduction…, Sections 1.1-1.3 • Recommended: Section 1.4 CSS 161: Fundamentals of Computing

More Related