دسته بندی سایت
برچسب های مهم
پیوند ها
نظرسنجی سایت
package AP13940701;
import java.util.Scanner;
class Student3 {
String stdName, stdFamily;
int stdId;
public Student3(String n, String f, int i) {
stdName = n;
stdFamily = f;
stdId = i;
}
void print(){
System.out.println(stdName+" "+stdFamily+" "+stdId);
}
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int N;
do{
System.out.print("Enter N: ");
String num = sc.nextLine();
if(num.matches("[0-9]+") && !num.equals("0") && num.length()<3){
N = Integer.parseInt(num);
break;
}
else if (!num.matches("[0-9]+"))
System.out.println("Error: N must be Integer");
else if (num.length()>=3)
System.out.println("Error: N must be Integer < 100");
else if (num.equals("0"))
System.out.println("Error: N must be > 0");
}while(true);
for(int i=0; i<N; i=i+1){
System.out.print("Enter Name: ");
String n = sc.nextLine();
System.out.print("Enter Family: ");
String f = sc.nextLine();
int idNo;
do{
System.out.print("Enter Id: ");
String id = sc.nextLine();
if(id.matches("[0-9]+") && id.length()==6){
idNo = Integer.parseInt(id);
break;
}
System.out.println("Error: StdId must be Integer with 6 digits!");
}while(true);
Student3 s = new Student3(n, f, idNo);
s.print();
}
}
}
در این مقاله موارد زیربررسی میشود واژگان مرتبط نظر اسلام و متفکران اسلامی فلسفه تفاوت های حقوقي در اسلام زمینه های پیدایش و بررسی فمنیسم جایگاه زن قبل و بعد اسلام جایگاه زن در قوانین داخلی مقايسة تفاوت حـقوقي جـنسيتي در اسلام و ... ...
اگر به یک وب سایت یا فروشگاه رایگان با فضای نامحدود و امکانات فراوان نیاز دارید بی درنگ دکمه زیر را کلیک نمایید.
ایجاد وب سایت یامحبوب ترین ها
پرفروش ترین ها
پر فروش ترین های فورکیا
پر بازدید ترین های فورکیا