Class 1 y 2 2ciclo

196 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
196
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Class 1 y 2 2ciclo

  1. 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. 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); } }

×