110 likes | 312 Views
ICS 102 – Introduction to Computing I. 1.1 Introduction to Java. Who am I ?!. Abdullah Khaled Al-Zamel Office: Bldg. 23, Rooom 064-8 Office Hours: TBA Phone: 7228 Email: azam @kfupm.edu.sa Web page: http://faculty.kfupm.edu.sa/ics/ azam. Course Contract!.
E N D
ICS 102 – Introduction to Computing I 1.1 Introduction to Java
Who am I ?! • Abdullah Khaled Al-Zamel • Office: Bldg. 23, Rooom 064-8 • Office Hours: TBA • Phone: 7228 • Email: azam@kfupm.edu.sa • Web page: • http://faculty.kfupm.edu.sa/ics/azam
Course Contract! • Write down important notes. • Ask immediately whenever a question rises. • Nothing is a trivial questions (at least it is yours! ). • Practice.. Practice.. Practice.. • Tell your feelings, don’t repress them. • Your Signature Please __________ !!
Text Book and Grading Criterion • Textbook: • “ABSOLUTE JAVA” by WALTER SAVITCH, Addison Wesley, or 2nd edition, 2005. • Grade Distribution :
Course Information • Web Site: • http://www.ccse.kfupm.edu.sa/ics102 • Discussion: • webcourses.kfupm.edu.sa • Regarding Class Work.. • Homework • Quizzes • Problem Solving (Participation) ICS 102 - Introduction to Computing I
Lets Begin… Salaam Shabab!!
A Simple Java Program public class Example01 { public static void main(String[] args) { System.out.println(“Hello ICS 102”) } } ICS 102 - Introduction to Computing I
Java Compiler ICS 102 - Introduction to Computing I
Another Java Program import javax.swing.JOptionPane; public class Example02 { public static void main(String[] args) { String ans; ans = JOptionPane.showInputDialog(null, "Speed in miles per hour?"); double mph = Double.parseDouble(ans); double kph = 1.621 * mph; JOptionPane.showMessageDialog(null, "KPH = " + kph); } } ICS 102 - Introduction to Computing I
Thank you for Your Concentration! Wait to see you next class