Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In excel, map PLAYER and its subtypes as a single table subtype implementation.

ID: 3599610 • Letter: I

Question

In excel, map PLAYER and its subtypes as a single table subtype implementation.

CONFERENCE ld (PK) Description SCHOOL ld Description specifie by PARTICIPANT Stadiumld (PFK) HomeTeam GAME Stadiumld (PFK) Date TickctPrice Attendance TEAM plays as/ played by Teamld (PFK) plays in Iplayed by ld (PKI (PK) PK) (PFK) specified by Confeld (FK) Schoolid (FK) specifiess location of held in OB Coachld(PFK) StartingDate (PK) EndingDate Salary Titield Teamld (FK) employer in employed by COACH ld (PK) Name SSN holds /held by STADIUM ld PK) City State (FK) JOB TITLE ld (PK) Description types typed by PITCHER member of consists of Playerld (PEK plays as lis Preference PLAYER ld SSN (PK) OUTFIELDER plays as Playerld (PFK Wcight Classiticationld (FK) Typcld Teamld Errors (FK) (FK) OTHER Playcrld (PFK Preference Comment plays as is PLAYER TYPE types /typed by ld (PK) Description PLAYER CLASSIFICATION ld classifies Iclas sified by (PK) Description

Explanation / Answer

package com;

public class ReverseString {

public static void main(String[] args) {

boolean isvalidate=ReverseString.validateString(args[0]);

if(isvalidate){

String value=ReverseString.reverseString(args[0]);

}

else{

System.out.println("Please enter valid String ! String should not be less then 5 character");

}

}

public static String reverseString(String input){

String result="";

char [] strValue=input.toCharArray();

for(int i=strValue.length-1;i>=0;i--){

result=result+strValue[i];

}

System.out.println(result);

return result;

}

public static boolean validateString(String strVal){

boolean flag=false;

if(strVal.length()>=5){

flag=true;

}

else{

flag=false;

}

return flag;

}

}