+ 1

How to pass the value that user input as string and print it

First off I am a newbie and I hope you can understand what I trying to imply, thanks for understanding. the problem is its seem my method cant pass the string value that inputted by the user <a href="https://imgur.com/a/Alea43y">Imgur: The magic of the Internet</a>[<a href="https://imgur.com/a/Alea43y" target="_blank" title="New Window">^</a>] I want to convert the input of faculty id and name as one string and return it as string when show the data. this is the uml view, I aware the uml may differ with my code, but the big picture of class implementation still same. <a href="https://imgur.com/a/4Gl5HaS"></a>[<a href="https://imgur.com/a/4Gl5HaS" target="_blank" title="New Window">^</a>] this is the code that solely focus on Faculty view the fragment of the code is here <a href="https://codeshare.io/GArg9e">https://codeshare.io/GArg9e</a>[<a href="https://codeshare.io/GArg9e" target="_blank" title="New Window">^</a>] for full code here <a href="https://codeshare.io/G88rDB">https://codeshare.io/G88rDB</a>[<a href="https://codeshare.io/G88rDB" target="_blank" title="New Window">^</a>]

27th Sep 2019, 4:39 PM
ignacio
1 Respuesta
0
correct it this way class Database { ... public Database() { // Faculty faculty = new Faculty(); faculties = new Faculty[10]; } public Faculty[] getFaculty() { // this.faculties = new Faculty[10]; return faculties; }
28th Sep 2019, 4:31 PM
zemiak