only error i get is when i use set saying it is no a compatible type
Type: Posts; User: SOLAS
only error i get is when i use set saying it is no a compatible type
the output for this gives sherlock 10 null
if i change getPerson() to setPerson() i get an error.
public class Test
{
public static void main(String[] args)
{
Dog dog[]...
Sorry want to create a new person and 2 dogs set that person to be the dogs owner
--- Update ---
i want to test that george owns the dogs
public class Test
{
We have two classes person and dog person object acts as an owner for dog and dog acts as pet for the person i.e a bidierctional association i have done this (see code) i modify the person class so...
thanks will do
never done that im afraid
oh get you now yes every bit of info goes to an array /list i have tried to do that but just wont work i know how to append the file but not a certain part of the file
to be honest youve lost me do u mean like the readfile method
in modules.txt the number registered will have to change and the user.txt file will have to change as well
currently writing a prog to carry out various operations as part of a module registration application. All info is taken from files,one option is to allow a student to deregister from a module do i...
@norm yeah will tidy it up now
@jps thanks very much noted for next time
norm your a legend my friend have got it now
this is new output
Enter the name of the test fileTwoTimesTables.txt
2*1=0?
false
2*2=4?
true
2*3=8?
false
2*5=10?
am i passing the file?
The value should be the number of questions that have been asked/contained in the file but how do i pass that
no because the number of questions in the file is 11 so 6 should give a grade of c i think
scorei is holding the same value as max ie both are taking say 6 if the person get 6 right
max is printing whatever the bestscore is
i am passing the bestscore ie say 8 to calgrades() and it is i think using this to work out the grades
ok have this program that reads in questions and answers from a txt file . then it reads the stusents answers and other info from a txt file and calculates their score. the problem i have is that...
the modules are stored in
String[] moduleName = {"PSP1", "PSP2", "Computer Architecture","Computer Hardware"};
for jack black if he selects list my modules all i want display is PSP1
so i use the find() method agin but just amend it to suit
i want to return the vale in one array depending on user ie
if the user is jack black i want to list his modules through the menu
NORM you are a genius have it fixed i basically over complicated the whole thing select was storing the value i entered but because i had added selects it needed the value again to carry out the...
back again i happy with prog now except for one thing below is the code for one of the menus that is displayed
public static void menuAdmin(String[] moduleName)
{
int selects;
int...
will do but must hit the hay its 1.15am here , i have figured out how to get array contents to display through menu.
thank you for your help ill be at it again tomorrow (wreck ur head again)lol
i tried this
if(userType=1)
but no good