Results 1 to 3 of 3

Thread: how to create a simple student profile in java

  1. #1
    Join Date
    Jan 2012
    Posts
    2

    how to create a simple student profile in java

    i am very new to java.....can somebody tell me how to create a simple student profile in java.

  2. #2
    Join Date
    Apr 2009
    Posts
    569

    Re: how to create a simple student profile in java

    In order to create a simple student profile in any programming language, you have to make use of variable to store the student name, roll_num , Std , etc. for that you must be clear with what data type you want to use to store the information of student.

    So according to my information you must create a class which have two method, one is for taking input for the data and the another is for displaying the data.

    Code:
    class Abc
    {
    public void accept()
    {
    // Your Statements
    }
    
    public void display()
    {
    // Your Statement;
    }
    
    }
    
    class Xyz
    {
    public static void main(String str[])
    {
    Abc a= new Abc();
    a.accept();
    a.display();
    }
    
    }

  3. #3
    Join Date
    Jan 2012
    Posts
    2

    Re: how to create a simple student profile in java

    Quote Originally Posted by Dwarner View Post
    In order to create a simple student profile in any programming language, you have to make use of variable to store the student name, roll_num , Std , etc. for that you must be clear with what data type you want to use to store the information of student.

    So according to my information you must create a class which have two method, one is for taking input for the data and the another is for displaying the data.

    Code:
    class Abc
    {
    public void accept()
    {
    // Your Statements
    }
    
    public void display()
    {
    // Your Statement;
    }
    
    }
    
    class Xyz
    {
    public static void main(String str[])
    {
    Abc a= new Abc();
    a.accept();
    a.display();
    }
    
    }

    I want to know how to build a program in String format

    I want to know that how can i write the following.
    the details like name, address, telephone number and bring out the output in the same program

Similar Threads

  1. How to calculate simple interest in java ?
    By xanix in forum Software Development
    Replies: 7
    Last Post: 08-12-2011, 11:47 PM
  2. Implement Simple Database using BST in Java
    By maxmidg412 in forum Software Development
    Replies: 2
    Last Post: 31-07-2011, 03:22 AM
  3. Demo of a simple 2D game in Java
    By Monty1 in forum Guides & Tutorials
    Replies: 4
    Last Post: 01-12-2010, 02:52 AM
  4. Running simple java program.....
    By Kushan in forum Software Development
    Replies: 4
    Last Post: 16-11-2009, 03:38 AM
  5. XP Client does not create user profile on server for Roaming Profile
    By ChrisParker02134 in forum Active Directory
    Replies: 3
    Last Post: 08-01-2009, 08:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,243,693.97674 seconds with 17 queries