GitHawkApp / GitHawk

The (second) best iOS app for GitHub.
http://githawk.com
MIT License
2.88k stars 385 forks source link

person.java #2909

Closed ahmad98-kh closed 4 years ago

ahmad98-kh commented 4 years ago

public class person{ private String fr-name; private String ls-name; private int ID; public person(){ } public person(String fr-name, String ls-name, int ID){ this.fr-name=fr-name; this.ls-name=ls-name; this.ID=ID; } public String getfr-name(){ return fr-name; } public void setfr-name(String fr-name){ this.fr-name=fr-name; } public String getls-name(){ return ls-name; } public void setls-name(String ls-name){ this.ls-name=ls-name; } public int getID(){ return ID; } public void setID(int ID){ this.ID=ID; } public String toString(){ return "my name is "+getfr-name+" my first name is "+ getls-name+" and my ID is "+getID; } }

import java.util.Scanner; public class main{ public static void main(String[]args){ Scanner input=new Scanner(System.in); person p= new person(); p.setfr-name(ahmad); p.setls-name(kheir); p.setID(71803171); system.out.pintln("my name is" +p.setfr-name()+" my first name is "+ p.setls-name()+" and my ID is "+ p.setID()); } }

Bug Report Dump (Auto-generated)
Version 1.27.2 (1546696737)
Device: iPhone 7 (iOS 13.3.1)
TestFlight: false