*

Lajme

June 16, 2010, 01:45:50 AM

nga GWD
June 14, 2010, 10:37:07 PM

Video e javës



   Shpejtesia e Google Chrome.


Diskutimet e fundit


*Ndegjoni Live: ayihRadio - OFF AIR


Pages: [1] |   Go Down
  Send this topic  |  Print  
Topic: Hyrja nga Useri  (Read 8890 times)
« on: June 03, 2008, 08:55:01 PM »
be a part of ayihORG community.
daBaki. Offline
Administrator
Hero Member

*****
Posts: 731



Ne kete ushtrim do te mesojn se si userit i kerkohet te shenoj nje numer dhe pasi te prek enter ai numer shfaqet:

import java.io.*; // import - e thirrim nje nder packetat qe posedon java te ndertuara ne te.

class Echo  // emri i programit
{
   public static void main (String[] args) throws IOException // IOException - Error, nese ka ndonje error injoroje.
   {
      InputStreamReader inStream= new InputStreamReader (System.in); // Programi pret nga useri qe tja jep ni input
      BufferedReader stdin = new BufferedReader (inStream);
      String inData;
// ktu e deklarojm qe eshte String, por bene edhe numer ska problem.
      
      System.out.println("Sheno diqka :");
      inData = stdin.readLine();
// stdin eshte emri i bufferit, e cila e mban mend at qe keni shenuar.
      
      System.out.println("Ju shkruajtet:" +inData); // Ktu e paraqesim ate qe kemi shenuar.
   }
}


Besoj qe do ta kuptoni diqka te pa kjart kerkoni skjarim/
Logged

I am what I am because of who we all are.
         
macbook //   
 
Tags: java  Programming  ayih 
Pages: [1] |   Go Up
  Send this topic  |  Print  
 
Jump to:  

SEKSIONE   Blogu  |  Galeria  |  Tage

Na kontaktoni | Tregoja mikut | Ndihme | Kerko forumet

English Information | FAQ | The Documentary Films




graphics by MakeItSimple Studios. ©2010 ayih Organization. All rights reserved.
Prishtina Prishtina Info