Elite Coders Society
Hello Guest!
Join us here in this forum!
Please Log in or Register to access more feature in this site.
Start Learning!

† Copyright ©️ 2011 - EliteCoders.forumotion.com †

Start sharing and learning new skills about programming and design by building connections with other professional and students.
HomeForumPortalCalendarGallerySearchRegisterLog in
Elite Coders Partner Links

EliteCoders™️ News!
Hello Guest!, Welcome in our forum. Be active!

Share | 

 Mutator & Assesor

View previous topic View next topic Go down 
Forum Owner
Forum Owner

Posts : 78
EC-Points : 6304
Thanked : 21
Join date : 15/10/2011
Age : 23
Location : Philippines

Hacker's Info
Hacking Exp:
0/0  (0/0)
Hacker Type: White Hat
Hacking Title:

PostSubject: Mutator & Assesor   Fri Nov 25, 2011 11:11 am

import java.util.Scanner;
public class startma{
    public static void main(String[]args){
    Scanner xx = new Scanner(System.in);
          ma ss = new ma();
    System.out.print("Enter the name of yor GF: ");
    String gfName = xx.nextLine();
class ma

public class ma{
    String girlFriend;
    void setName(String name){
          girlFriend = name;}
    String getName(){
          return girlFriend;}
    void sayName(){
          System.out.println("Your first girlfriend is " +  girlFriend);}

[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
Back to top Go down
View user profile

Mutator & Assesor

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Elite Coders Society :: Software Development :: Java Programming :: Object-Oriented Programming (OOP) Java-

Protected by Copyscape Duplicate Content Finder
Powered By EliteCoders™

Elite Coders Partner Links
GreyPhantomYour Link HereYour Link HereYour Link Here