Thursday, 6 June 2013

some more programmes made by me
1-
 enter student data using functions in different class
u can enter your roll no,class,and name
the gui is not so good bcoz my main focus was on the concept
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
class student{
int a,b;
String c;

DataInputStream dis=new DataInputStream(System.in);

void getdata()
{
try{
a=Integer.parseInt(dis.readLine());
b=Integer.parseInt(dis.readLine());
c=dis.readLine();


}
catch(IOException io)
{}

}
void showdata()
{
System.out.println("roll no="+a);
System.out.println("class="+b);
System.out.println("name="+c);


}


}

class Studentdata{
public static void main(String arg[])
{
student object=new student();
object.getdata();
object.showdata();

}


}
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]

No comments:

Post a Comment