Towson University COSC 236

Slides:



Advertisements
Similar presentations
How can Microsoft PowerPoint 2007 help you share information?
Advertisements

Setting up Eclipse PSC 120 Jeff Schank. Outline Find our user account Create “PSC120” Folder Create a “workspace” folder Link it to Eclipse Install Mason.
How to Submit an Assignment after the Due Date. Click on “Courses” Tab.
D2L Tutorial #2 - Dropbox This tutorial will walk you through the basic steps for submitting an assignment to the D2L Dropbox. Note: When viewing this.
1 Chapter 2 Introduction to Java Applications Introduction Java application programming Display ____________________ Obtain information from the.
Introduction to C++ Programming. A Simple Program: Print a Line of Text // My First C++ Program #include int main( ) { cout
Your First Java Program: HelloWorld.java
Introduction to C++ September 12, Today’s Agenda Quick Review Check your programs from yesterday Another Simple Program: Adding Two Numbers Rules.
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
How to Take a Screenshot By Ashley Hudson Screenshot of this screen 
Course Orientation Assignments Tool. If the Assignments tool has been added to the course, use the Assignments link in the Course Menu to access upcoming.
 2003 Prentice Hall, Inc. All rights reserved. Customized by Sana Odeh for the use of this class. 1 Introduction to Computers and Programming in JAVA.
CS288 Lab Exercise 1. UniS Open PersonGui Files Go to Course web site for PersonGui source files
A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon...
How to convert a Word file to PDF. Log in to an iSolutions workstation and start Adobe Acrobat from the Start menu.
Copyright 2013 by Pearson Education Building Java Programs Chapter 1 Lecture 1-1: Introduction; Basic Java Programs reading:
1 Building Java Programs Chapter 1: Introduction to Java Programming These lecture notes are copyright (C) Marty Stepp and Stuart Reges, They may.
Introducing Java.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
Uploading Image Files. Introduction – Click on Control Panel Button Typically, most instructors will post the majority of their images under the “Course.
Introduction to Java Thanks to Dan Lunney (SHS). Java Basics File names The “main” method Output to screen Escape Sequence – Special Characters format()
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Chapter 2: Java Fundamentals
 Pearson Education, Inc. All rights reserved Introduction to Java Applications.
Computer Tips to Help Your Child. How to use the computer correctly! It is important that we follow all rules when using the computer. If you ever have.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Submitting and Assignment Click on the assignment link in your course The folder with the paper sticking out of the top is the symbol for an assignment.
JAVA Practical Creating our first program 2. Source code file 3. Class file 4. Understanding the different parts of our program 5. Escape characters.
ECE 122 Feb. 1, Introduction to Eclipse Java Statements Declaration Assignment Method calls.
Getting Started.
Lab 01-2 Objectives:  Writing a Java program.  How to send output to the command line console.  Learn about escape sequences.  Learn how to compile,
A Simple Java Program //This program prints Welcome to Java! public class Welcome { public static void main(String[] args) { public static void main(String[]
How to Install Eclipse Click hereClick here to download Eclipse.
Project 3: Ticket Printer
1 Class 1 Lecture Topic Concepts, Definitions and Examples.
Introduction to Eclipse Programming with an Integrated Development Environment.
Read, Read, Read, Read, Read!! The following presentation is a review over important icons and commands in the Microsoft Word program. They are important.
Formatting a Document in Microsoft Word. Once you have your lab response written, you’re ready to get started on formatting! The following presentation.
1/10/2008. >>> About Us Paul Beck * Third quarter TA * Computer Engineering * Ryan Tucker * Second quarter TA * Computer.
Introduction to Programming Python Lab 5: Strings and Output 05 February PythonLab5 lecture slides.ppt Ping Brennan
1 Project 7: Looping. Project 7 For this project you will produce two Java programs. The requirements for each program will be described separately on.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
How to use Moodle Spring 2012 PowerPoint Created by Erin Pence & Mike Seeley Any questions, us at
8/2/07. >>> About Me Scott Shawcroft * Junior * Computer Engineering * Third Quarter TA * Creative Commons Intern * Small-time Open Source Developer
1 Project 4: Palindrome Detector. 2 Assignment Write a C++ program that reads a line of text from the keyboard and reports to the user whether the text.
1 Creating a FNMA 1003 V.3.2.txt file that can be uploaded and submitted to emasshousing.com In order to upload a 1003 file to emasshousing.com you need.
Copyright 2010 by Pearson Education APCS Building Java Programs Chapter 1 Lecture 1-1: Introduction; Basic Java Programs reading:
FAQ 01 How our courses work… Once you are enrolled, simply select the appropriate course link to display its information. If I were enrolled in the Certificate.
STRUCTURED PROGRAMMING Complete C++ Program. Content 2  Main Function  Preprocessor directives  User comments  Escape characters  cout statement.
DEVRY CIS 170 C I L AB 2 OF 7 D ECISIONS Check this A+ tutorial guideline at decisions For.
MGT 521 Week 3 Individual Personal Professional Development Plan Activity Part 4 Navigate to the My Career Plan in Career Services. Complete the Career.
Computer Programming Your First Java Program: HelloWorld.java.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Appendix A Barb Ericson Georgia Institute of Technology May 2006
CS1101 : Using Course Marker
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
Review Tab Click on the Review tab to: - view the entire course - use Highwire to print the course or save the file to your computer This tab allows.
MLP EVALUATION DIRECTIONS:
How to Run a Java Program
Escape sequences escape sequence: A special sequence of characters used to represent certain special characters in a string. \t Inserts a tab in the.
You can please some of the people some of the time…
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
Blackboard Beginner Level Training
You can please some of the people some of the time…
Unit 3: Variables in Java
Running a Java Program using Blue Jay.
D2L Tutorial #2 - Dropbox This tutorial will walk you through the basic steps for submitting an assignment to the D2L Dropbox. Note: When viewing this.
Workshop for Programming And Systems Management Teachers
How to Run a Java Program
Presentation transcript:

Towson University COSC 236 Lab 1: Java Basics Lab document created by Kyung Eun Park

Introduction to DrJava DrJava is a programming environment for Java for beginners. For more detailed and technical user documentation, see the User Documentation: http://www.drjava.org

Using DrJava After installing, run DrJava under computer science/pgms folder Opening and Creating Files To create a new file, choose “File, New” from the File menu To open a file, choose “File, Open” from the File menu Saving Files To save a file, either click on the “Save” button or choose “File, Save.”

Saving Files

Compiling Files To compile all open files, click on the “Compile” button. Once the compile is completed, the results are displayed on the Compiler Output tab at the bottom of the screen.

Direction for Lab Assignments Submit your .java file before next Lab (11:00 a.m. February 4th) electronically on the BlackBoard. Make sure that your program contains your name, course, and section number as well as a brief description of the lab as a comment. The following slides include lab assignments for this week. Please write a complete Java program, compile, and run the program. The individual assignments can be combined into one program or you can submit them as a zip file.

Assignment 1 Write a complete Java program that prints the following output: ///////////////////////// || Vicotory is mine! || \\\\\\\\\\\\\\\\\\\\\\\\\

Assignment 2 Write a complete Java program that prints the following output: --------------- / ^ ^ \ (| @ |) \ \___/ /

Assignment 3 Write a complete Java program that prints the following output: A well-formed Java program has a main method with { and } braces. A System.out.println statement has ( and ) and usually a String that starts and ends with a “ character. (But we type \” instead!)

Assignment 4 Write a complete Java program that prints the following output: A ”quoted” String is ’much’ better if you learn the rules of ”escape sequence.” Also, ”” represents an empty String. Don’t forget: use \” (\’) instead of ” (’) ! ’’ is not the same as ”.

Assignment 5 Write a complete Java program that prints the following output: There’s one thing every coder must understand: The System.out.println command.