Search:

Type: Posts; User: SOLAS

Page 1 of 2 1 2

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    1,135

    Re: Modify a class and test

    only error i get is when i use set saying it is no a compatible type
  2. Replies
    7
    Views
    1,135

    Re: Modify a class and test

    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[]...
  3. Replies
    7
    Views
    1,135

    Re: Modify a class and test

    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
    {
  4. Replies
    7
    Views
    1,135

    Modify a class and 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...
  5. Thread: File question

    by SOLAS
    Replies
    10
    Views
    1,019

    [SOLVED] Re: File question

    thanks will do
  6. Thread: File question

    by SOLAS
    Replies
    10
    Views
    1,019

    [SOLVED] Re: File question

    never done that im afraid
  7. Thread: File question

    by SOLAS
    Replies
    10
    Views
    1,019

    [SOLVED] Re: File question

    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
  8. Thread: File question

    by SOLAS
    Replies
    10
    Views
    1,019

    [SOLVED] Re: File question

    to be honest youve lost me do u mean like the readfile method
  9. Thread: File question

    by SOLAS
    Replies
    10
    Views
    1,019

    [SOLVED] Re: File question

    in modules.txt the number registered will have to change and the user.txt file will have to change as well
  10. Thread: File question

    by SOLAS
    Replies
    10
    Views
    1,019

    [SOLVED] File question

    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...
  11. Thread: help with grades

    by SOLAS
    Replies
    17
    Views
    1,436

    [SOLVED] Re: help with grades

    @norm yeah will tidy it up now
    @jps thanks very much noted for next time
  12. Thread: help with grades

    by SOLAS
    Replies
    17
    Views
    1,436

    [SOLVED] Re: help with grades

    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?
  13. Thread: help with grades

    by SOLAS
    Replies
    17
    Views
    1,436

    [SOLVED] Re: help with grades

    am i passing the file?
  14. Thread: help with grades

    by SOLAS
    Replies
    17
    Views
    1,436

    [SOLVED] Re: help with grades

    The value should be the number of questions that have been asked/contained in the file but how do i pass that
  15. Thread: help with grades

    by SOLAS
    Replies
    17
    Views
    1,436

    [SOLVED] Re: help with grades

    no because the number of questions in the file is 11 so 6 should give a grade of c i think
  16. Thread: help with grades

    by SOLAS
    Replies
    17
    Views
    1,436

    [SOLVED] Re: help with grades

    scorei is holding the same value as max ie both are taking say 6 if the person get 6 right
  17. Thread: help with grades

    by SOLAS
    Replies
    17
    Views
    1,436

    [SOLVED] Re: help with grades

    max is printing whatever the bestscore is
  18. Thread: help with grades

    by SOLAS
    Replies
    17
    Views
    1,436

    [SOLVED] Re: help with grades

    i am passing the bestscore ie say 8 to calgrades() and it is i think using this to work out the grades
  19. Thread: help with grades

    by SOLAS
    Replies
    17
    Views
    1,436

    [SOLVED] help with 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...
  20. Thread: head is fried

    by SOLAS
    Replies
    20
    Views
    1,146

    [SOLVED] Re: head is fried

    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
  21. Thread: head is fried

    by SOLAS
    Replies
    20
    Views
    1,146

    [SOLVED] Re: head is fried

    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
  22. Thread: head is fried

    by SOLAS
    Replies
    20
    Views
    1,146

    [SOLVED] Re: head is fried

    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...
  23. Thread: head is fried

    by SOLAS
    Replies
    20
    Views
    1,146

    [SOLVED] Re: head is fried

    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...
  24. Thread: head is fried

    by SOLAS
    Replies
    20
    Views
    1,146

    [SOLVED] Re: head is fried

    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
  25. Thread: head is fried

    by SOLAS
    Replies
    20
    Views
    1,146

    [SOLVED] Re: head is fried

    i tried this
    if(userType=1)
    but no good
Results 1 to 25 of 30
Page 1 of 2 1 2