• Like
Class 1 y 2 2ciclo
Upcoming SlideShare
Loading in...5
×
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
53
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Class 1  Delivery notesClass 2  Exposure: Introduction to JavaJava.- Java is a language oriented objectsEXERCISE1.- HelloWorld.java (with arguments)Pulic class HelloWorld{Public static void main (String[] args){System.out.println(“Hello”);}}
  • 2. 2.- Seller.java(with income)import java.util.Scanner;public class Seller { Scanner opt = new Scanner(System.in); String Name; String Surname; String telephone; Vendedor(){ this.Name=""; this.telephone=""; } void signIn (){ System.out.println("Put your name"); Name=opt.nextLine(); System.out.println("Put your Surname"); Surname=opt.nextLine(); System.out.println("Put your telephone"); telephone=opt.nextLine(); } void show() { System.out.println("Name:"+Name); System.out.println("Surname:"+Surname); System.out.println("Telephone:"+telephone); } }