Programim ne Java. Pergatiti: Alda Kika

Size: px
Start display at page:

Download "Programim ne Java. Pergatiti: Alda Kika"

Transcription

1 Pergatiti: Alda Kika Instalohet nje trajtues perjashtimesh nepermjet blloqeve try/catch blloku try permban instruksione qe mund te shkaktojne nje perjashtim blloku catch permban trajtuesin per nje tip perjashtimi 1

2 Shembull: try String filename =...; FileReader reader = new FileReader(filename); Scanner in = new Scanner(reader); String input = in.next(); int value = Integer.parseInt(input);... catch (IOException exception) exception.printstacktrace(); catch (NumberFormatException exception) System.out.println("Inputi nuk eshte nje numer"); Instruksionet ne bllokun try ekzekutohen Nese nuk ndodh asnje perjashtim, blloku catch perjashtohet Nese tipi i perjashtimit perputhet me tipin e perjashtimit te ndodhur, ekzekutimi hidhet ne bllokun catch perkates Nese ndodh nje perjashtim i nje tipi tjeter, ai hidhet derisa te kapet nga nje bllok tjeter try catch (IOException exception) block exception permban referenca te objektit perjashtues qe u hodh catch mund te analizoje objektin per te gjetur me shume detaje exception.printstacktrace(): printon zinxhirin e metodave qe thirren derisa te hidhet perjashtimi 2

3 Supozoni se skedari me nje emer te caktuar ekziston dhe nuk ka permbajtje. Gjurmoni rrjedhen e ekzekutimit ne bllokun try. Pergjigje: Konstruktori i FileReader therritet dhe objekti in ndertohet ne menyre te suksesshme. Me pas therritja in.next() hedh nje NoSuchElementException dhe blloku try abandonohet. Asnje nga blloqet catch nuk ka tipe perjashtimesh te pershtatshme prandaj asnje prej tyre nuk ekzekutohet. Nese asnje nga metodat e thirrura nuk e kap perjashtimin, programi perfundon. 3

4 A ka ndonje diference ndermjet kapjes se perjashtimeve te kontrolluara dhe te pakontrolluara? Pergjigje: Jo ju mund te kapni te dyja tipet e perjashtimeve ne te njejten menyre. finally Perjashtimi ben qe metoda ne te cilen ndodh te perfundoje Rreziku: Mund te mos ekzekutohet kod i rendesishem Shembull: reader = new FileReader(filename); Scanner in = new Scanner(reader); readdata(in); reader.close(); // May never get here Metoda reader.close()duhet te ekzekutohet dhe nese ndodh perjashtimi. Perdorni bllokun finally per kodin qe doni qe te ekzekutohet per te gjitha rastet(edhe kur ndodh perjashtimi) 4

5 finally FileReader reader = new FileReader(filename); try Scanner in = new Scanner(reader); readdata(in); finally reader.close(); // if an exception occurs, finally clause // is also executed before exception // is passed to its handler finally Ekzekutohet kur dalim nga blloku try ne njeren nga tre mundesite e mundshme: 1. Pas instruksionit te fundit te bllokut try. 2. Nese blloku try kap nje perjashtim, pas instruksionit te fundit te bllokut catch perkates. 3. Kur nje perjashtim hidhet nga blloku try dhe nuk kapet Rekomandim: Mos perzieni blloqet catch dhe finally ne te njejtin bllok try. 5

6 finally Pse deklarohet variabli out jashte bllokut try? Pergjigje: Nese deklarohet brenda bllokut try, fusha e tij e aksesit do te zgjerohej deri ne fund te bllokut try dhe blloku finally nuk do te mundte ta mbyllte ate. 6

7 Supozoni se skedarit i jipet nje emer qe nuk ekziston. Gjurmoni ekzekutimin e kodit. Pergjigje: Konstruktori i PrintWriter hedh nje perjashtim dhe out nuk inicializohet. Blloku finally nuk ekzekutohet. Kjo eshte sjellja e sakte pasi variabli out nuk u inicializua. Ju mund te dizenjoni tipet tuaja perjashtuese subklasa te klases Exception ose RuntimeException if (amount > balance) throw new InsufficientFundsException( "withdrawal of " + amount + " exceeds balance of " + balance); Bejeni nje perjashtim te pakontrolluar programuesi mund ta evitoje duke therritur metoden getbalance fillimisht Trashegoni nga RuntimeException ose nje nga subsubklasat e tij Siguroni dy konstruktore 1. Konstruktorin default 2. Nje konstruktor qe pranon nje string mesazhi qe pershkruan arsyen e perjashtimit exception 7

8 public class InsufficientFundsException extends RuntimeException public InsufficientFundsException() public InsufficientFundsException(String message) super(message); Cili eshte qellimi i therritjes super(message) ne konstruktorin InsufficientFundsException? Pergjigje: Per te kaluar nje string perjashtimi ne superklasen RuntimeException. 8

9 Supozoni se po lexoni te dhena per nje llogari bankare nga nje skedar. Ndryshe nga sa pritet vlera qe merret nuk eshte e tipit double. Vendosni te implementoni nje BadDataException. Cilen klase perjashtuese duhet te zgjeroni? Pergjigje: Pasi korruptimi i skedareve nuk kontrollohet nga programuesit, duhet te jete nje perjashtim i kontrolluar, prandaj do te ishte e gabuar te trashegohej nga RuntimeException ose IllegalArgumentException. Per shkak se gabimi ka lidhje me te dhenat, IOException do te ishte nje zgjedhje e mire. Programi I kerkoni perdoruesit emrin e skedareve Skedari pritet te permbaje vlera te dhenash Rreshti i pare permban numrin total te te dhenave Rreshtat qe ngelin permbajne te dhenat Skedari tipik:

10 Cfare mund te shkoje keq? Skedari mund te mos ekzistoje Skedari mund ti kete te dhenat ne formatin e gabuar Kush mund ti detuktoje gabimet? Konstruktori i FileReader do te hedhe nje perjashtim kur skedari nuk ekziston Metodat qe procesojne te dhenat hyrese kane nevoje te hedhin perjashtim nese gjejne gabim ne formatin e te dhenave Cfare perjashtimesh mund te hidhen? FileNotFoundException mund te hidhet nga konstruktori FileReader IOException mund te hidhet nga metoda close e FileReader BadDataException, nje klase perjashtuese e kontrolluar Cilat mund te kompesojne gabimet qe perjashtimet rapojtojne? Vetem metoda main e programit DataSetTester bashkevepron me perdoruesin Kap perjashtimet Printon mesazhe te pershtatshme gabimi I jep perdoruesit nje tjeter rast per te futur skedarin e duhur 10

11 1 import java.io.filenotfoundexception; 2 import java.io.ioexception; 3 import java.util.scanner; 4 5 /** 6 This program reads a file containing numbers and analyzes its contents. 7 If the file doesn t exist or contains strings that are not numbers, an 8 error message is displayed. 9 */ 10 public class DataAnalyzer public static void main(string[] args) Scanner in = new Scanner(System.in); 15 DataSetReader reader = new DataSetReader(); boolean done = false; 18 while (!done) 19 Vazhdim 20 try System.out.println("Please enter the file name: "); 23 String filename = in.next(); double[] data = reader.readfile(filename); 26 double sum = 0; 27 for (double d : data) sum = sum + d; 28 System.out.println("The sum is " + sum); 29 done = true; catch (FileNotFoundException exception) System.out.println("File not found."); catch (BadDataException exception) System.out.println("Bad data: " + exception.getmessage()); catch (IOException exception) exception.printstacktrace();

12 readfile e DataSetReader Nderton objektin Scanner Therret metoden readdata E painteresuar per perjashtimet readfile DataSetReader Nese ka ndonje problem me skedarin hyres, ai thjesht kalon perjashtimin tek thirresi: public double[] readfile(string filename) throws IOException, BadDataException // FileNotFoundException is an IOException FileReader reader = new FileReader(filename); try Scanner in = new Scanner(reader); readdata(in); finally reader.close(); return data; 12

13 readdata Lexon numrin e vlerave Nderton nje tabele Lexon readvalue per secilen vlere: DataSetReader private void readdata(scanner in) throws BadDataException if (!in.hasnextint()) throw new BadDataException("Length expected"); int numberofvalues = in.nextint(); data = new double[numberofvalues]; for (int i = 0; i < numberofvalues; i++) readvalue(in, i); if (in.hasnext()) throw new BadDataException("End of file expected"); readdata DataSetReader Kontrollon per dy gabime potenciale 1. Skedari mund te mos filloje me nje numer te plote 2. Skedari mund te kete te dhena shtese pas leximit te vlerave Nuk ben asnje perpjekje per te kapur ndonje perjashtim 13

14 readvalue DataSetReader private void readvalue(scanner in, int i) throws BadDataException if (!in.hasnextdouble()) throw new BadDataException("Data value expected"); data[i] = in.nextdouble(); 1. DataAnalyzer.main therret DataSetReader.readFile 2. readfile therret readdata 3. readdata therret readvalue 4. readvalue nuk gjen vleren qe priste dhe hedh BadDataException 5. readvalue nuk ka trajtues per perjashtimin dhe perfundon 6. readdata nuk ka trajtues per perjashtimin dhe perfundon 7. readfile nuk ka trajtues per perjashtimin dhe perfundon pas ekzekutimit te bllokut finally 8. DataAnalyzer.main ka trajtues per BadDataException; trajtuesi printon nje mesazh dhe perdoruesit i jepet nje tjeter shans per te futur emrin e skedarit 14

15 1 import java.io.file; 2 import java.io.ioexception; 3 import java.util.scanner; 4 5 /** 6 Reads a data set from a file. The file must have the format 7 numberofvalues 8 value1 9 value */ 12 public class DataSetReader private double[] data; 15 Vazhdim 16 /** 17 Reads a data set. filename the name of the file holding the data the data in the file 20 */ 21 public double[] readfile(string filename) throws IOException, BadDataException File infile = new File(filename); 24 Scanner in = new Scanner(inFile); 25 try readdata(in); 28 return data; finally in.close(); Vazhdim 15

16 DataSetReader.java 36 /** 37 Reads all data. in the scanner that scans the data 39 */ 40 private void readdata(scanner in) throws BadDataException if (!in.hasnextint()) 43 throw new BadDataException("Length expected"); 44 int numberofvalues = in.nextint(); 45 data = new double[numberofvalues]; for (int i = 0; i < numberofvalues; i++) 48 readvalue(in, i); if (in.hasnext()) 51 throw new BadDataException("End of file expected"); Vazhdim 54 /** 55 Reads one data value. in the scanner that scans the data i the position of the value to read 58 */ 59 private void readvalue(scanner in, int i) throws BadDataException if (!in.hasnextdouble()) 62 throw new BadDataException("Data value expected"); 63 data[i] = in.nextdouble();

17 1 import java.io.ioexception; 2 3 /** 4 This class reports bad input data. 5 */ 6 public class BadDataException extends IOException 7 8 public BadDataException() 9 public BadDataException(String message) super(message); Pse metoda DataSetReader.readFile nuk kap asnje perjashtim? Pergjigje: Sepse nuk do te ishte e afte te bente shume me kapjen e tyre.klasa DataSetReader eshte nje klase e riperdorshme dhe mund te perdoret per sisteme me gjuhe te ndryshme dhe nderfaqje perdoruesi te ndryshme. Pra, nuk mund te merret me perdoruesin e programit. 17

18 Supozoni se perdoruesi specifikon nje skedar qe ekziston dhe eshte bosh. Gjurmoni rrjedhen e ekzekutimit. Pergjigje: DataSetAnalyzer.main therret DataSetReader.readFile, e cila therret readdata. Therritja in.hasnextint() kthen false dhe readdata hedh nje BadDataException. Metoda readfile nuk e kap ate, prandaj ai e perhap prapa tek main, ku kapet. 18

Chapter 15. Exception Handling. Chapter Goals. Error Handling. Error Handling. Throwing Exceptions. Throwing Exceptions

Chapter 15. Exception Handling. Chapter Goals. Error Handling. Error Handling. Throwing Exceptions. Throwing Exceptions Chapter 15 Exception Handling Chapter Goals To learn how to throw exceptions To be able to design your own exception classes To understand the difference between checked and unchecked exceptions To learn

More information

11/1/2011. Chapter Goals

11/1/2011. Chapter Goals Chapter Goals To be able to read and write text files To learn how to throw exceptions To be able to design your own exception classes To understand the difference between checked and unchecked exceptions

More information

Kapitulli 8 Dizenjimi i klasave. Alda KIKA

Kapitulli 8 Dizenjimi i klasave. Alda KIKA Kapitulli 8 Dizenjimi i klasave Alda KIKA Qellimet Te kuptohet shtrirja per variablat lokale dhe variablat e instances Te mesohet rreth paketave Shtrirja e variablave lokale Shtrirja e variablit: Rajoni

More information

Baza te Infomatikes Leksioni 4

Baza te Infomatikes Leksioni 4 Baza te Infomatikes Leksioni 4 Elisa Reçi Universiteti Luigj Gurakuqi Fakulteti i Shkencave te Natyres Departamenti i Matematikes dhe Informatikes SHKODER MSc. Elisa Reci 1 Struktura e C++ // Ky eshte

More information

Blloqet e urdherave ne dege

Blloqet e urdherave ne dege Blloqet e urdherave ne dege Gjuhet programore www.shmk-negotine.edu.mk S. Latifi 1 Kushtet e shumëfishta krijohen duke i kombinuar disa kushte Kushtet e shumëfishta përmes operatorëve logjik: AND (Dhe),

More information

Fundamentos de programação

Fundamentos de programação Fundamentos de programação Tratamento de exceções Edson Moreno edson.moreno@pucrs.br http://www.inf.pucrs.br/~emoreno Exception Handling There are two aspects to dealing with run-time program errors: 1)

More information

Exceptions - Example. Exceptions - Example

Exceptions - Example. Exceptions - Example - Example //precondition: x >= 0 public void sqrt(double x) double root; if (x < 0.0) //What to do? else //compute the square root of x return root; 1 - Example //precondition: x >= 0 public void sqrt(double

More information

Strukture te Dhenash Seminar 4

Strukture te Dhenash Seminar 4 Strukture te Dhenash Seminar 4 ELISA RECI Universiteti Luigj Gurakuqi Fakulteti i Shkencave te Natyres Departamenti i Matematikes dhe Informatikes SHKODER MSc. Elisa Reci 1 Bashkesite Permban elemente

More information

BAZAT E PROGRAMIMIT PJESA 3 PROF.DR. ERMIR ROGOVA

BAZAT E PROGRAMIMIT PJESA 3 PROF.DR. ERMIR ROGOVA BAZAT E PROGRAMIMIT PJESA 3 PROF.DR. ERMIR ROGOVA MATERIALI I SHTJELLUAR NE KËTË LIGJËRATË ËSHTË MARRË NGA LIBRI: BAZAT E PROGRAMIMIT NË C++, AGNI DIKA OPERATORËT LOGJIKË PËR KRAHASIMIN E MË SHUMË SHPREHJEVE

More information

JavaScript/ ECMA Script

JavaScript/ ECMA Script JavaScript/ ECMA Script Ҫfarë është JavaScript? JavaScript përdoret për të shtuar interaktivitet në faqet HTML. JavaScript është një gjuhë skriptimi, pra një gjuhë e lehtë programimi. JavaScript është

More information

Exception Handling. General idea Checked vs. unchecked exceptions Semantics of... Example from text: DataAnalyzer.

Exception Handling. General idea Checked vs. unchecked exceptions Semantics of... Example from text: DataAnalyzer. Exception Handling General idea Checked vs. unchecked exceptions Semantics of throws try-catch Example from text: DataAnalyzer Exceptions [Bono] 1 Announcements Lab this week is based on the textbook example

More information

Hyrje ne Informatike Seminar 5

Hyrje ne Informatike Seminar 5 Hyrje ne Informatike Seminar 5 Elisa Reçi Universiteti Luigj Gurakuqi Fakulteti i Shkencave te Natyres Departamenti i Matematikes dhe Informatikes SHKODER MSc. Elisa Reci 1 PROGRAM ProgramName; VAR VariableName

More information

Universiteti i Prishtinës Fakulteti i inxhinierisë elektrike dhe kompjuterike. Gjuhë programuese C++ MSc. Vehbi NEZIRI

Universiteti i Prishtinës Fakulteti i inxhinierisë elektrike dhe kompjuterike. Gjuhë programuese C++ MSc. Vehbi NEZIRI Universiteti i Prishtinës Fakulteti i inxhinierisë elektrike dhe kompjuterike Gjuhë programuese C++ MSc. Vehbi NEZIRI 1 Aktivizimi i editorit 2 Aktivizimi i editorit 3 Hapja e projektit të ri 4 Struktura

More information

Leksion 5. Ushtrim 1 : Deklarimi i disa karaktereve speciale ne c++

Leksion 5. Ushtrim 1 : Deklarimi i disa karaktereve speciale ne c++ Leksion 5 Ushtrim 1 : Deklarimi i disa karaktereve speciale ne c++ cout

More information

Struktura e të dhënave

Struktura e të dhënave Struktura e të dhënave Provimi përfundimtar, Forma: A Emri: ID (Nr. dosjes): Drejtimi: Data: 1. Është dhënë klasa import javax.swing.*; /** Numëron votat për kandidatët elektoralë. * input: një varg votash,

More information

Mesimi Sema Foundation ICT Department

Mesimi Sema Foundation ICT Department Mesimi - 19 Sema Foundation Ç janë skedarët? Kur jemi duke: shkruajtur një tekst, duke bërë një vizatim, duke bërë një tabelë, duke përpunuar një foto, etj Në kompjuter krijojmë një objekt. Ky objekt i

More information

Strukture te Dhenash Seminar 8

Strukture te Dhenash Seminar 8 Strukture te Dhenash Seminar 8 ELISA RECI Universiteti Luigj Gurakuqi Fakulteti i Shkencave te Natyres Departamenti i Matematikes dhe Informatikes SHKODER MSc. Elisa Reci 1 Skedaret Skedari eshte nje varg

More information

Strukturat e kontrollit ne C++

Strukturat e kontrollit ne C++ Strukturat e kontrollit ne C++ Një program mund të procesohet në një nga këto mënyra: 1. Në sekuencë 2. Me përzgjedhje 3. Përsëritje (cikël) 4. Thirrje funksioni Strukturat e kontrollit sekuencë përzgjedhje

More information

Strukture te Dhenash Seminar 7

Strukture te Dhenash Seminar 7 Strukture te Dhenash Seminar 7 ELISA RECI Universiteti Luigj Gurakuqi Fakulteti i Shkencave te Natyres Departamenti i Matematikes dhe Informatikes SHKODER MSc. Elisa Reci 1 Skedaret Skedari eshte nje varg

More information

Intro to Computer Science II. Exceptions

Intro to Computer Science II. Exceptions Intro to Computer Science II Exceptions Admin Exam review Break from Quizzes lab questions? JScrollPane JScrollPane Another swing class Allows a scrollable large component. JList? Constructors See next

More information

Programimi në C++ Leksion 1

Programimi në C++ Leksion 1 Programimi në C++ Leksion 1 Direktivat e paraprocesimit së bashku me shprehjet e programit përbëjnë kodin burim i cili duhet të ruhet në një skedar burim me prapashtesën.cpp Pas kompilimit të programit

More information

Programim në Java Kohezgjatja: 2 semestra 12 kredite Menyra e vleresimit: Testim, Detyra, Provim. Lektore e lendes: Suela Maxhelaku

Programim në Java Kohezgjatja: 2 semestra 12 kredite Menyra e vleresimit: Testim, Detyra, Provim. Lektore e lendes: Suela Maxhelaku Programim në Java Kohezgjatja: 2 semestra 12 kredite Menyra e vleresimit: Testim, Detyra, Provim Lektore e lendes: Suela Maxhelaku Programim ne Java Qëllimi i lendes është të njohë studentët me bazat e

More information

TEZA E OLIMPIADES SE INFORMATIKES KLASA 10 FAZA I

TEZA E OLIMPIADES SE INFORMATIKES KLASA 10 FAZA I TEZA E OLIMPIADES SE INFORMATIKES KLASA 10 FAZA I 1.Kodi standart amerikan qe perfaqeson karakteret ne bite eshte: a) Binary digit b) ASCII c) WYSIWYG d) Gigabyte 2.Nese deshironi te kopjoni pamjet e ekranit

More information

Introduction to Computer Science II CS S-22 Exceptions

Introduction to Computer Science II CS S-22 Exceptions Introduction to Computer Science II CS112-2012S-22 Exceptions David Galles Department of Computer Science University of San Francisco 22-0: Errors Errors can occur in program Invalid input / bad data Unexpected

More information

Insertimi i Fotografisë në Weebly.com

Insertimi i Fotografisë në Weebly.com Insertimi i Fotografisë në Weebly.com Së pari hapeni Web-faqen,www.weebly.com si më poshtë: Hapi 2. Klikoni me tstin e majtë në Sign in.. Këtu shënoni E-mail adresën të cilën e keni regjistruar në Weebly.

More information

Universiteti i Prishtinës Fakulteti i inxhinierisë elektrike dhe kompjuterike. Gjuhë programuese C++ MSc. Vehbi NEZIRI

Universiteti i Prishtinës Fakulteti i inxhinierisë elektrike dhe kompjuterike. Gjuhë programuese C++ MSc. Vehbi NEZIRI Universiteti i Prishtinës Fakulteti i inxhinierisë elektrike dhe kompjuterike Gjuhë programuese C++ MSc. Vehbi NEZIRI 1 Java e 13 Strukturat Definimi i strukturave të zakonshme Deklarimi i variablave të

More information

Interface Serial 0/1/0

Interface Serial 0/1/0 Testimi i EIGRP-se ne rastet e nderprerjeve ne rrjete Topologjia e rrjetes: Emri i Ruterit Interface Serial 0/0/0 Interface Serial 0/1/0 Fastethernet 0/0 Fastethernet 0/1 UBT-PR 172.16.224.2 172.16.224.6

More information

Input-Output and Exception Handling

Input-Output and Exception Handling Software and Programming I Input-Output and Exception Handling Roman Kontchakov / Carsten Fuhs Birkbeck, University of London Outline Reading and writing text files Exceptions The try block catch and finally

More information

Ushtrim ne C++ (funksionet nenprogramet)

Ushtrim ne C++ (funksionet nenprogramet) Ushtrim ne C++ (funksionet nenprogramet) void text(); //deklarojme nenprogramin char a[10]; cout

More information

UNIVERSITETI ALEKSANDËR MOISIU, DURRES JAVA LEKSION 1. Armela Habili Friday, November 02, 2012

UNIVERSITETI ALEKSANDËR MOISIU, DURRES JAVA LEKSION 1. Armela Habili Friday, November 02, 2012 UNIVERSITETI ALEKSANDËR MOISIU, DURRES JAVA LEKSION 1 Armela Habili Friday, November 02, 2012 Përmbajtja Leksion 1 1. Hyrje... 1 2. Historiku i Java... 2 3. Java, karakteristikat kryesore... 3 3.1 Java

More information

Avantazhet e programimit ne Dot Net:

Avantazhet e programimit ne Dot Net: Programming Avantazhet e programimit ne Dot Net: 1. Nje nga karakteristikat kryesore eshte qe ti mund te perdoresh te gjitha gjuhet qe jane ne.net sebashku. Keshtu nese pjestaret e nje grupi kane aftesi

More information

Packet Switching. Një histori dixhitale, me shumë bytes

Packet Switching. Një histori dixhitale, me shumë bytes Packet Switching Një histori dixhitale, me shumë bytes Packet switching eshte nje metode komunikimi rrjeti dixhitale e cila grupon te gjitha te dhenat qe transmetohen pa marre parasysh permbajtjen, tipin

More information

ROUTER TRING WIRELESS MANUAL KONFIGURIMI

ROUTER TRING WIRELESS MANUAL KONFIGURIMI ROUTER TRING WIRELESS MANUAL KONFIGURIMI 1 1. HYRJA NË KONFIGURIMIN E ROUTERIT TRING WIRELESS 2. MENUJA NETWORK 3. MENUJA WIRELESS 4. KONFIGURIMI I PC PËR LIDHJEN ME RRJETIN WIRELESS 5. MENUJA ADVANCED

More information

DHTML, DOM dhe Javascript Modeli i objekteve dhe ngjarjeve. Leksion 8

DHTML, DOM dhe Javascript Modeli i objekteve dhe ngjarjeve. Leksion 8 DHTML, DOM dhe Javascript Modeli i objekteve dhe ngjarjeve Leksion 8 1 Cfare eshte DHTML? DHTML eshte nje kombinim teknologjishe, qe perdoren per te krijuar Web site dinamike dhe interaktive. DHTML NUK

More information

COMP 202 File Access. CONTENTS: I/O streams Reading and writing text files. COMP File Access 1

COMP 202 File Access. CONTENTS: I/O streams Reading and writing text files. COMP File Access 1 COMP 202 File Access CONTENTS: I/O streams Reading and writing text files COMP 202 - File Access 1 I/O Streams A stream is a sequence of bytes that flow from a source to a destination In a program, we

More information

SIGURIA NË TI. Universiteti i Prizrenit Fakulteti i Shkencave Kompjuterike Dega: SD

SIGURIA NË TI. Universiteti i Prizrenit Fakulteti i Shkencave Kompjuterike Dega: SD SIGURIA NË TI Universiteti i Prizrenit Fakulteti i Shkencave Kompjuterike Dega: SD 20.10.2012 Nga ora e kaluar Përsëritje A ka sisteme të sigurta? Çfarë kuptimi ka të qenit i sigurt? Ç është siguria? Jepni

More information

Ushtrimi 1 & 2 HTML. Mr. Sc. Nexhibe Sejfuli

Ushtrimi 1 & 2 HTML. Mr. Sc. Nexhibe Sejfuli Ushtrimi 1 & 2 HTML Rreth HTML (Hyper Text Markup Language) HTML, i cili qëndron për HyperText Markup Language, është një gjuhë e shënuar që përdoret për të krijuar web faqe. Zhvilluesit e Web-it (Internetit)

More information

Recitation: Loop Jul 7, 2008

Recitation: Loop Jul 7, 2008 Nested Loop Recitation: Loop Jul 7, 2008 1. What is the output of the following program? Use pen and paper only. The output is: ****** ***** **** *** ** * 2. Test this program in your computer 3. Use "for

More information

CSE 1223: Introduction to Computer Programming in Java Chapter 7 File I/O

CSE 1223: Introduction to Computer Programming in Java Chapter 7 File I/O CSE 1223: Introduction to Computer Programming in Java Chapter 7 File I/O 1 Sending Output to a (Text) File import java.util.scanner; import java.io.*; public class TextFileOutputDemo1 public static void

More information

Universiteti i Prishtinës Fakulteti i inxhinierisë elektrike dhe kompjuterike. Gjuhë programuese C++ MSc. Vehbi NEZIRI

Universiteti i Prishtinës Fakulteti i inxhinierisë elektrike dhe kompjuterike. Gjuhë programuese C++ MSc. Vehbi NEZIRI Universiteti i Prishtinës Fakulteti i inxhinierisë elektrike dhe kmpjuterike Gjuhë prgramuese C++ MSc. Vehbi NEZIRI 1 Java e 10 Funksinet në fajlla/skedarë Makr funksinet Funksinet e mbingarkuara Sinnimet

More information

Leksion 3. Frida GJERMENI

Leksion 3. Frida GJERMENI Leksion 3 Frida GJERMENI Protokolli SMTP MTA-te jane 2 llojeshe: MTA Client (MTA per Klientin) dhe_ MTA Server (MTA per Serverin) Protokolli qe perdoret nga MTA Client dhe MTA Server eshte SMTP (Simple

More information

GRUPI TEKNOLOGJIK I PRISHTINËS. Windows XP Professional

GRUPI TEKNOLOGJIK I PRISHTINËS.  Windows XP Professional GRUPI TEKNOLOGJIK I PRISHTINËS www.pr-tech.net Windows XP Professional WINDOWS XP PROFESSIONAL Instalimi i Windows XP Professional Besart Bajrami E-mail: besartbajrami@gmail.com besartbajrami@hotmail.com

More information

Input from Files. Buffered Reader

Input from Files. Buffered Reader Input from Files Buffered Reader Input from files is always text. You can convert it to ints using Integer.parseInt() We use BufferedReaders to minimize the number of reads to the file. The Buffer reads

More information

Informatika. Blerina Zanaj

Informatika. Blerina Zanaj Informatika Blerina Zanaj Software Nje program perbehet nga nje sekuenc instruksionesh qe specifikojne ate qe duhet te beje kompiuteri. Software eshte nje set programesh qe ofrohen nga prodhuesi i hardware

More information

I/O Streams. COMP 202 File Access. Standard I/O. I/O Stream Categories

I/O Streams. COMP 202 File Access. Standard I/O. I/O Stream Categories CONTENTS: I/O streams COMP 202 File Access Reading and writing text files I/O Streams A stream is a sequence of bytes that flow from a source to a destination In a program, we read information from an

More information

CS S-22 Exceptions 1. Running a web server, don t want one piece of bad data to bring the whole thing down

CS S-22 Exceptions 1. Running a web server, don t want one piece of bad data to bring the whole thing down CS112-2012S-22 Exceptions 1 22-0: Errors Errors can occur in program Invalid input / bad data Unexpected situation Logic error in code Like to handle these errors gracefully, not just halt the program

More information

Rrjetat kompjuterike dhe WWW. Rrjetat dhe WWW. Kapitulli 3. (gjenerata 2017/18)

Rrjetat kompjuterike dhe WWW. Rrjetat dhe WWW. Kapitulli 3. (gjenerata 2017/18) Rrjetat kompjuterike dhe WWW Kapitulli 3 (gjenerata 2017/18) Përmbajtja Topologjitë e rrjetave Pajisjet kryesore të LAN-it Bazat e lëvizjes së shënimeve brenda LAN-it Pajisjet kryesore të LAN-it A mund

More information

Definimi i klasave të zakonshme

Definimi i klasave të zakonshme FIM-Mekatronika Strukturat e të dhënave dhe algoritmet Klasat detyrat P1 1 Kur flitet për programimin e orientuar në objekte (ang. object-oriented programming), ose shkurt - programimin me objekte, gjithnjë

More information

Klasat dhe abstragimi i te dhenave

Klasat dhe abstragimi i te dhenave Klasat dhe abstragimi i te dhenave Klasat Klasë Një koleksion atributesh dhe funksionesh të deklaruar si një njësi e vetme. Anetaret e nje klase perbejne variabla ose funksione Anëtarët e një klase Atribute

More information

JavaScript shton ndëraktivitetin në website. JavaScript punon së bashku me HTML dhe CSS për krijimin e websiteve ndëraktive dhe tërheqëse.

JavaScript shton ndëraktivitetin në website. JavaScript punon së bashku me HTML dhe CSS për krijimin e websiteve ndëraktive dhe tërheqëse. Hyrje në JavaScript JavaScript shton ndëraktivitetin në website. JavaScript punon së bashku me HTML dhe CSS për krijimin e websiteve ndëraktive dhe tërheqëse. Para se të filloni të mësoni JavaScript rekomandohet

More information

Ruajtja e Perkoheshme. Llojet e Memories DRAM. Memoria RAM 25/11/2012. Karakteristikat e Teknologjis se Memorjeve.

Ruajtja e Perkoheshme. Llojet e Memories DRAM. Memoria RAM 25/11/2012. Karakteristikat e Teknologjis se Memorjeve. Ruajtja e Perkoheshme Universiteti AAB Faculty of Computer Science and Technology Arkitektura e Kompjuterit Memorjet Primare Hapat e perpunimit te nje programi? Pse nuk mundemi me i mbajt te dhenat vetem

More information

Programming II (CS300)

Programming II (CS300) 1 Programming II (CS300) Chapter 04: Exception Handling MOUNA KACEM mouna@cs.wisc.edu Fall 2018 Creating Classes 2 Introduction Exception Handling Common Exceptions Exceptions with Methods Assertions and

More information

Analysis, Design and Implementation of the Albanian Post Management System,

Analysis, Design and Implementation of the Albanian Post Management System, Analysis, Design and Implementation of the Albanian Post Management System, e- Albanian Postal Services (e-aps) Adela Tufina BACHELORS DEGREE EPOKA UNIVERSITY 2014 Analysis, Design and Implementation of

More information

Projeto de Software / Programação 3 Tratamento de Exceções. Baldoino Fonseca/Márcio Ribeiro

Projeto de Software / Programação 3 Tratamento de Exceções. Baldoino Fonseca/Márcio Ribeiro Projeto de Software / Programação 3 Tratamento de Exceções Baldoino Fonseca/Márcio Ribeiro baldoino@ic.ufal.br What can go wrong?! result = n1 / n2; In the following slides: 1) Analyze the code; 2) read

More information

Cleveland State University. CIS260 Lecture Notes Feb 22 Chapter 6 Iterations Files (updated Wed. Mar 3) V. Matos

Cleveland State University. CIS260 Lecture Notes Feb 22 Chapter 6 Iterations Files (updated Wed. Mar 3) V. Matos Cleveland State University CIS260 Lecture Notes Feb 22 Chapter 6 Iterations Files (updated Wed. Mar 3) V. Matos Observe that various ideas discussed in class are given as separate code fragments in one

More information

Programming II (CS300)

Programming II (CS300) 1 Programming II (CS300) Chapter 04: Exception Handling MOUNA KACEM mouna@cs.wisc.edu Spring 2018 Creating Classes 2 Introduction Exception Handling Common Exceptions Exceptions with Methods Assertions

More information

CS159. Nathan Sprague

CS159. Nathan Sprague CS159 Nathan Sprague What s wrong with the following code? 1 /* ************************************************** 2 * Return the mean, or -1 if the array has length 0. 3 ***************************************************

More information

A sample print out is: is is -11 key entered was: w

A sample print out is: is is -11 key entered was: w Lab 9 Lesson 9-2: Exercise 1, 2 and 3: Note: when you run this you may need to maximize the window. The modified buttonhandler is: private static class ButtonListener implements ActionListener public void

More information

Java Console Input/Output The Basics

Java Console Input/Output The Basics Java Console Input/Output The Basics Lecture 3 COP 3252 Summer 2017 May 23, 2017 Console Output System.out out is a PrintStream object, a static data member of class System. This represents standard output

More information

BBM 102 Introduction to Programming II Spring Exceptions

BBM 102 Introduction to Programming II Spring Exceptions BBM 102 Introduction to Programming II Spring 2018 Exceptions 1 Today What is an exception? What is exception handling? Keywords of exception handling try catch finally Throwing exceptions throw Custom

More information

CIS 1068 Netflix Challenge New assignment posted soon Lab grades November 14, 2017

CIS 1068 Netflix Challenge New assignment posted soon Lab grades November 14, 2017 Administrative Stuff CIS 1068 Netflix Challenge New assignment posted soon Lab grades November 14, 2017 Last Time. Building Our Own Classes Why Abstraction More on the new operator Fields Class vs the

More information

CIS November 14, 2017

CIS November 14, 2017 CIS 1068 November 14, 2017 Administrative Stuff Netflix Challenge New assignment posted soon Lab grades Last Time. Building Our Own Classes Why Abstraction More on the new operator Fields Class vs the

More information

COMP-202 Unit 9: Exceptions

COMP-202 Unit 9: Exceptions COMP-202 Unit 9: Exceptions Course Evaluations Please do these. -Fast to do -Used to improve course for future. (Winter 2011 had 6 assignments reduced to 4 based on feedback!) 2 Avoiding errors So far,

More information

PLAN MESIMOR I PROGRAMIT TE STUDIMIT TE CIKLIT TE PARE

PLAN MESIMOR I PROGRAMIT TE STUDIMIT TE CIKLIT TE PARE REPUBLIKA E SHQIPËRISË UNIVERSITETI EQREM ÇABEJ FAKULTETI SHKENCAVE TE NATYRES DEPARTAMENTI I MATEMATIKES & INFORMATIKES GJIROKASTËR PLAN MESIMOR I PROGRAMIT TE STUDIMIT TE CIKLIT TE PARE TEKNOLOGJI INFORMACIONI

More information

Objektorienterad programmering

Objektorienterad programmering Objektorienterad programmering Lecture 8: dynamic lists, testing and error handling Dr. Alex Gerdes Dr. Carlo A. Furia SP1 2017/18 Chalmers University of Technology In the previous lecture 7 Reading and

More information

COSC 123 Computer Creativity. I/O Streams and Exceptions. Dr. Ramon Lawrence University of British Columbia Okanagan

COSC 123 Computer Creativity. I/O Streams and Exceptions. Dr. Ramon Lawrence University of British Columbia Okanagan COSC 123 Computer Creativity I/O Streams and Exceptions Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Objectives Explain the purpose of exceptions. Examine the try-catch-finally

More information

Exception Handling CSCI 201 Principles of Software Development

Exception Handling CSCI 201 Principles of Software Development Exception Handling CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline Program USC CSCI 201L 2/19 Exception Handling An exception is an indication of a problem

More information

What are Exceptions?

What are Exceptions? Exception Handling What are Exceptions? The traditional approach Exception handing in Java Standard exceptions in Java Multiple catch handlers Catching multiple exceptions finally block Checked vs unchecked

More information

CS159. Nathan Sprague

CS159. Nathan Sprague CS159 Nathan Sprague What s wrong with the following code? 1 /* ************************************************** 2 * Return the maximum, or Integer. MIN_VALUE 3 * if the array has length 0. 4 ***************************************************

More information

Klasat e Teta Perseritje Provimi Nr-4. Perseritje per Klasat e Teta

Klasat e Teta Perseritje Provimi Nr-4. Perseritje per Klasat e Teta Perseritje per Klasat e Teta Mesimi 3.1 MS Excel, Funksionet, Hapja dhe Mbylllja. Elementet kryesore te faqes se punes Exceli eshte nje program i MS Office i cili perdoret per: Llogaritje Per te bere tabela

More information

Introduction Unit 4: Input, output and exceptions

Introduction Unit 4: Input, output and exceptions Faculty of Computer Science Programming Language 2 Object oriented design using JAVA Dr. Ayman Ezzat Email: ayman@fcih.net Web: www.fcih.net/ayman Introduction Unit 4: Input, output and exceptions 1 1.

More information

Chapter Goals. Chapter 5 - Iteration. Calculating the Growth of an Investment

Chapter Goals. Chapter 5 - Iteration. Calculating the Growth of an Investment Chapter Goals To be able to program loops with the while and for statements To avoid infinite loops and off-by-one errors To be able to use common loop algorithms To understand nested loops To implement

More information

Biznesi dhe Interneti

Biznesi dhe Interneti Biznesi dhe Interneti Pjesa 2 Prof. Ass. Dr. Ermir Rogova Objektivat Shpjegimi se çka është Internet Service Provider (ISP) dhe cilat shërbime mund të presim prej tyre Diskutim për veglat që na duhet për

More information

CN208 Introduction to Computer Programming

CN208 Introduction to Computer Programming CN208 Introduction to Computer Programming Lecture #11 Streams (Continued) Pimarn Apipattanamontre Email: pimarn@pimarn.com 1 The Object Class The Object class is the direct or indirect superclass of every

More information

Dokumentimi i API. Faton Berisha. Fakulteti i Shkencave Kompjuterike Universiteti i Prizrenit. Hyrje Dokumentimi i kodit burimor Përfundim

Dokumentimi i API. Faton Berisha. Fakulteti i Shkencave Kompjuterike Universiteti i Prizrenit. Hyrje Dokumentimi i kodit burimor Përfundim Dokumentimi i API Faton Berisha Fakulteti i Shkencave Kompjuterike Universiteti i Prizrenit Dokumentimi i API 1 Përmbajtja Hyrje 1 Hyrje 2 Dokumentimi i API 2 Hyrje Krijimi i referencave Përdorimi i veglës

More information

//Formimi i matrices #include <iostream> #include <math> using namespace std;

//Formimi i matrices #include <iostream> #include <math> using namespace std; 1 //Formimi i matrices #include const int m=4,n=4; int i,j,a[m][n]; for (i=0;i

More information

CS 302: Introduction to Programming in Java. Lectures 17&18. It s insanely hot. People desperately need some snowflakes

CS 302: Introduction to Programming in Java. Lectures 17&18. It s insanely hot. People desperately need some snowflakes CS 302: Introduction to Programming in Java Lectures 17&18 It s insanely hot. People desperately need some snowflakes Static variables Again (class variables) Variables unique to the class (all objects

More information

9. Java Errors and Exceptions

9. Java Errors and Exceptions Errors and Exceptions in Java 9. Java Errors and Exceptions Errors and exceptions interrupt the normal execution of the program abruptly and represent an unplanned event. Exceptions are bad, or not? Errors,

More information

Përpiluar nga : Fatbardha Abazi

Përpiluar nga : Fatbardha Abazi Përpiluar nga : Fatbardha Abazi Përmbajtja Moduli 1: Hyrje në C#... 3 1.1. Çka është.net Platform-a?... 4 1.2. Çka është.net Framework?... 5 1.3. Puna me Programet zhvillimore... 6 1.4. Karakteristikat

More information

Kapitulli 3. Modelimi i te dhenave duke perdorur Entity-Relationship (ER) Model

Kapitulli 3. Modelimi i te dhenave duke perdorur Entity-Relationship (ER) Model Kapitulli 3 Modelimi i te dhenave duke perdorur Entity-Relationship (ER) Model 3.1 Objektivat Shembull aplikimi baze te dhenash (KOMPANIA) Koncepte te ER Model Entitetet dhe Atributetet Tipet e Entise,

More information

CS244 Advanced Programming Applications

CS244 Advanced Programming Applications CS 244 Advanced Programming Applications Exception & Java I/O Lecture 5 1 Exceptions: Runtime Errors Information includes : class name line number exception class 2 The general form of an exceptionhandling

More information

Rrjetat dhe WWW.

Rrjetat dhe WWW. KAPITULLI 5 ElverBajrami elver.bajrami@uni-pr.edu Përmbajtja Mediumet më të shpeshta në LAN Krijimi i nje kablli UTP Komponentet dhe pajisjet e Shtresës 1 Mediumet më të shpeshta në LAN Shielded twisted-pair

More information

Tema: Programimi për Windows Mobile Në këtë leksion...net Framework dhe.net CF Ndërtimi i ndërfaqeve grafike për Windows Mobile

Tema: Programimi për Windows Mobile Në këtë leksion...net Framework dhe.net CF Ndërtimi i ndërfaqeve grafike për Windows Mobile Tema: Programimi për Windows Mobile Në këtë leksion....net Framework dhe.net CF Ndërtimi i ndërfaqeve grafike për Windows Mobile 1. Hyrje në platformën.net 1.1..Net Framework Microsoft.NET Framework është

More information

public class Q1 { public int x; public static void main(string[] args) { Q1 a = new Q1(17); Q1 b = new Q1(39); public Q1(int x) { this.

public class Q1 { public int x; public static void main(string[] args) { Q1 a = new Q1(17); Q1 b = new Q1(39); public Q1(int x) { this. CS 201, Fall 2013 Oct 2nd Exam 1 Name: Question 1. [5 points] What output is printed by the following program (which begins on the left and continues on the right)? public class Q1 { public int x; public

More information

Çfare eshte Software? Software-i i Kompjuterit i jep instruksione (komanda) Hardware-it dhe e ben ate te funksionoje.

Çfare eshte Software? Software-i i Kompjuterit i jep instruksione (komanda) Hardware-it dhe e ben ate te funksionoje. Kapitulli - 2 Mesimi - 9 OPERATING SYSTEMS Çfare eshte Software? Software-i i Kompjuterit i jep instruksione (komanda) Hardware-it dhe e ben ate te funksionoje. Llojet e Software-ve Kemi kater lloj software-sh

More information

COMP-202 Unit 9: Exceptions

COMP-202 Unit 9: Exceptions COMP-202 Unit 9: Exceptions Announcements - Assignment 4: due Monday April 16th - Assignment 4: tutorial - Final exam tutorial next week 2 Exceptions An exception is an object that describes an unusual

More information

Ligjërata 9. Prof.Ass.Dr. Ermir Rogova

Ligjërata 9. Prof.Ass.Dr. Ermir Rogova Ligjërata 9 Prof.Ass.Dr. Ermir Rogova JavaScript Gjuhe skriptuese e cila përdoret për të shtuar funksionalitetin dhe dukjen e web faqeve. Të gjithë web shfletuesit përmbajnë interpretues të cilët i procesojnë

More information

CS115. Chapter 17 Exception Handling. Prof. Joe X. Zhou Department of Computer Science. To know what is exception and what is exception handling

CS115. Chapter 17 Exception Handling. Prof. Joe X. Zhou Department of Computer Science. To know what is exception and what is exception handling CS115 Pi Principles i of fcomputer Science Chapter 17 Exception Handling Prof. Joe X. Zhou Department of Computer Science CS115 ExceptionHandling.1 Objectives in Exception Handling To know what is exception

More information

I/O Streams. program. Standard I/O. File I/O: Setting up streams from files. program. File I/O and Exceptions. Dr. Papalaskari 1

I/O Streams. program. Standard I/O. File I/O: Setting up streams from files. program. File I/O and Exceptions. Dr. Papalaskari 1 File I/O and Exceptions CSC 1051 Data Structures and Algorithms I I/O Streams Programs read information from input streams and write information to output streams Dr. Mary-Angela Papalaskari Department

More information

I/O Streams. program. Standard I/O. File I/O: Setting up streams from files. program. File I/O and Exceptions. Dr. Papalaskari 1

I/O Streams. program. Standard I/O. File I/O: Setting up streams from files. program. File I/O and Exceptions. Dr. Papalaskari 1 File I/O and Exceptions CSC 1051 Data Structures and Algorithms I I/O Streams Programs read information from input streams and write information to output streams Dr. Mary-Angela Papalaskari Department

More information

FTESË PËR SHPREHJE TË INTERESIT PËR OFRUES TË TRAJNIMEVE PROFESIONALE

FTESË PËR SHPREHJE TË INTERESIT PËR OFRUES TË TRAJNIMEVE PROFESIONALE FTESË PËR SHPREHJE TË INTERESIT PËR OFRUES TË TRAJNIMEVE PROFESIONALE Numri ftesës për ofertim: ICK-CLF-2017/09 Data e publikimit 30 Gusht 2017 Data e mbylljes: 11 Shtator 2017 Titulli i kontratës: Trajnime

More information

COMP 202 File Access. CONTENTS: I/O streams Reading and writing text files. COMP 202 File Access 1

COMP 202 File Access. CONTENTS: I/O streams Reading and writing text files. COMP 202 File Access 1 COMP 202 File Access CONTENTS: I/O streams Reading and writing text files COMP 202 File Access 1 I/O Streams A stream is a sequence of bytes that flow from a source to a destination In a program, we read

More information

Biznesi dhe Interneti

Biznesi dhe Interneti Biznesi dhe Interneti Pjesa 1 Prof. Ass. Dr. Ermir Rogova Literatura Objektivat Dallimi në mes të Internetit dhe World Wide Web (WWW) (W3) dhe histori e shkurtër e secilit Përshkrimi i arkitekturës klient-server

More information

Rregullore për Pagesat Ndërkombëtare

Rregullore për Pagesat Ndërkombëtare Bazuar në nenin 35, paragrafi 1, nënparagrafi 1.1, dhe nenin 22, paragrafi 2, nënparagrafi 2.3, të Ligjit nr. 03/L-209 për Bankën Qendrore të Republikës së Kosovës, si dhe nenin 8, paragrafi 1 dhe paragrafi

More information

Assignment 8B SOLUTIONS

Assignment 8B SOLUTIONS CSIS 10A Assignment 8B SOLUTIONS Read: Chapter 8 Choose and complete any 10 points from the problems below, which are all included in the download file on the website. Use BlueJ to complete the assignment,

More information

CS 455 Midterm Exam 2 Fall 2015 [Bono] Nov. 10, 2015

CS 455 Midterm Exam 2 Fall 2015 [Bono] Nov. 10, 2015 Name: USC NetID (e.g., ttrojan): CS 455 Midterm Exam 2 Fall 2015 [Bono] Nov. 10, 2015 There are 9 problems on the exam, with 54 points total available. There are 8 pages to the exam (4 pages double-sided),

More information

Software Practice 1 - Error Handling

Software Practice 1 - Error Handling Software Practice 1 - Error Handling Exception Exception Hierarchy Catching Exception Userdefined Exception Practice#5 Prof. Joonwon Lee T.A. Jaehyun Song Jongseok Kim (42) T.A. Sujin Oh Junseong Lee 1

More information

Java Console Input/Output The Basics. CGS 3416 Spring 2018

Java Console Input/Output The Basics. CGS 3416 Spring 2018 Java Console Input/Output The Basics CGS 3416 Spring 2018 Console Output System.out out is a PrintStream object, a static data member of class System. This represents standard output Use this object to

More information

CS 161: Object Oriented Problem Solving

CS 161: Object Oriented Problem Solving About this course CS 161: Object Oriented Problem Solving About this course Course webpage: http://www.cs.colostate.edu/~cs161/ The course webpage is our major communication tool. Check it on a daily basis!

More information

GPolygon GCompound HashMap

GPolygon GCompound HashMap Five-Minute Review 1. How do we construct a GPolygon object? 2. How does GCompound support decomposition for graphical objects? 3. What does algorithmic complexity mean? 4. Which operations does a HashMap

More information