+ 3

I created the Roster of my favorite NBA team L.A. Lakers Do you Like my Code,,,?So Lets go Give me upvotes...I need 10+ upvotes

package com.company; public class Main extends Los_Angeles_Lakers_Roster{ public static void main(String[] args) { Main p1=new Main(); Main p2=new Main(); Main p3=new Main(); Main p4=new Main(); p1.a("Team Name ` Los Angeles Lakers "+"\n"+"\n","Player Name = Jordan Clarkson "+"\n", "Position = Guard " + "\n","Age = ",24,"\n"+"Number = ",6); p2.a(""+"\n","Player Name = D'Angelo Russell "+"\n","Position = Guard"+"\n","Age = ",20,"\n"+"Number = ",1); p3.a(""+"\n","Player Name = Brandon Ingram "+"\n","Position = Forward "+"\n","Age = ",21,"\n"+"Number = ",14); p4.a(""+"\n","Player Name = Nick Young "+"\n","Position = Forward-Guard "+"\n","Age = ",31,"\n"+"Number = ",0); System.out.println(p1.getTeam_name()+p1.getPlayer_name()+p1.getmposition()+p1.getnage()+p1.getmage()+p1.getnnumber()+p1.getnumber()); System.out.println(p2.getTeam_name()+p2.getPlayer_name()+p2.getmposition()+p2.getnage()+p2.getmage()+p2.getnnumber()+p2.getnumber()); System.out.println(p3.getTeam_name()+p3.getPlayer_name()+p3.getmposition()+p3.getnage()+p3.getmage()+p3.getnnumber()+p3.getnumber()); System.out.println(p4.getTeam_name()+p4.getPlayer_name()+p4.getmposition()+p4.getnage()+p4.getmage()+p4.getnnumber()+p4.getnumber()); } }

18th Sep 2016, 3:17 PM
Zohrab Alexanian
Zohrab Alexanian - avatar
3 odpowiedzi
+ 4
class Los_Angeles_Lakers_Roster { String Team_name; String Player_name; String Position; String age; int Age; String number; int Number; public void a(String Team_name,String Player_name, String Position,String age, int Age,String number,int Number) { this.Team_name=Team_name; this.Player_name=Player_name; this.Position=Position; this.age=age; this.Age=Age; this.number=number; this.Number=Number; } public String getTeam_name(){ return Team_name; } public String getPlayer_name(){ return Player_name; } public String getmposition(){ return Position; } public String getnage(){ return age; } public int getmage(){ return Age; } public String getnnumber(){ return number; } public int getnumber(){ return Number; } }
18th Sep 2016, 3:16 PM
Zohrab Alexanian
Zohrab Alexanian - avatar
+ 4
Write Em united in 1 code......or write em in Diferent classes no matter... I used Constructor...
18th Sep 2016, 3:18 PM
Zohrab Alexanian
Zohrab Alexanian - avatar
0
DO I NEED FIFA TO DO THIS
8th Jun 2020, 2:37 AM
kylan.vandervoet