Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you help me fix my java code. package assignment5; import java.util.ArrayList; import java.util.Date; public class Controller { private static final String[] studentCode= {s100,s200,s300}; private

Can you help me fix my java code.

package assignment5;

import java.util.ArrayList; import java.util.Date;

public class Controller { private static final String[] studentCode= {"s100","s200","s300"}; private static final String[] studentName= {"student1","student2","student3"}; private static final int[] studentCredit= {20,25,15}; private static final String[] courseCode= {"cs1000","cs2000","cs3000"}; private static final String[] courseName= {"Java","C++","Android"}; private static final int[] courseCredit= {4,4,3}; private static final String[] regStudentCode= {"s100","s100","s200","s200","s300","s300"}; private static final String[] regCourseCode= {"cs1000","cs2000","cs1000","cs2000","cs2000","cs3000"}; private static final String[] regDate= {"2019/1/09","2019/1/10","2019/1/15","2019/1/09","2019/1/10","2019/1/15"}; private ArrayList courses; private ArrayList students; private ArrayList enrollments; public Controller() { courses=new ArrayList(); students=new ArrayList(); enrollments=new ArrayList(); fillLists(); } private void fillLists() { for(int i=0;i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Implementing Ai And Machine Learning For Business Optimization

Authors: Robert K Wiley

1st Edition

B0CPQJW72N, 979-8870675855

Students also viewed these Databases questions