يا جماعه هل في الجافا دالة موجوده للدخال من الكيبورد عن طريق الكونسل ؟
ما هيى ؟
واقصد غير ال JOption
يا جماعه هل في الجافا دالة موجوده للدخال من الكيبورد عن طريق الكونسل ؟
ما هيى ؟
واقصد غير ال JOption
import java.io.*;
public class Daz{
public static void main ( String args[] ) throws IOException {
BufferedReader reader = new BufferedReader ( new InputStreamReader( System.in)));
System.out.println (" Enter your name : " );
String name = reader.readLine();
System.out.println ("Your name is " + name );
}
}تقريبا كده :D
تم تعديل هذه المشاركة بواسطة مبتدئ جافا في 4 يونيو 2007 في 09:23
في J2SDK 1.5 :
import java.util.Scanner;
public class Hello
{
public static void main ( String args[] )
{
Scanner input = new Scanner(System.in);
int x;
x= input.nextInt();
System.out.println(x);
}
}تم تعديل هذه المشاركة بواسطة romansy في 4 يونيو 2007 في 17:37
http://informatic-ar.com منصة تعليمية عربية في علوم الحاسب والبرمجة
https://moalfat.com للكتب الالكترونية والكورسات التعليمية
Everything we see now is just an engineering solution based on old science
هذا الموضوع مغلق.