Search:

Type: Posts; User: craigtb; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: reading a file

    by craigtb
    Replies
    0
    Views
    9,081

    reading a file

    I have a program in which i need to read a file. I am using a try and catch statement, but everythign i try and bring in the file it catches somethign and does not aquire the information.

    here is...
  2. Replies
    1
    Views
    7,214

    Got it fixed. It was because my arrays in the...

    Got it fixed. It was because my arrays in the driver file were declared static. Not sure why it effected it but that is the reason.
  3. Replies
    0
    Views
    9,850

    errors with scan.next()

    Hi,
    i have a program that takes in input from the user as a string. To get this i am using string = scan.next().

    It works fine until i place a space in the string. I get an error. I dont think i...
  4. Replies
    2
    Views
    8,415

    Ahhh yeah thanks!

    Ahhh yeah thanks!
  5. Replies
    1
    Views
    7,214

    Changing arrays.

    Ok one last problem... i hope.
    When i run through my Undergrad loop and add the grades it works. but when i add two or more Undergrad students it uses the most recent scores added for all the...
  6. Replies
    2
    Views
    12,849

    i knew it was something simple. Thanks once again.

    i knew it was something simple. Thanks once again.
  7. Replies
    2
    Views
    7,260

    That got it. thanks!!!

    That got it. thanks!!!
  8. Replies
    2
    Views
    12,849

    Return type required?

    I am again working on that project and am very close to being done. I have all but one class working. The error it is giving me is that it says a return type is required, but on all the other ones i...
  9. Replies
    2
    Views
    8,415

    Trouble with inheritance

    Ok i am trying to get these childer classes to go back to the parent but i am having trouble. here is what i need the structure to look like.


    Student...
  10. Replies
    2
    Views
    7,260

    Sending an array...?

    I was wondering how i would get an array in a different class... for example

    assume projects is an array


    ListOfStudents[counter] = new Undergrad(projects);
  11. Replies
    6
    Views
    13,423

    Ok thanks that works for it. thansk a ton...

    Ok thanks that works for it. thansk a ton again... ill probably be back before this project is done.
  12. Replies
    6
    Views
    13,423

    Ok thats what i was kinda looking for but i tried...

    Ok thats what i was kinda looking for but i tried some short cut method that my book shows but its more for jsut listing numbers rather thank objects.

    Ok 1 more thing. How can i make it not print...
  13. Replies
    6
    Views
    13,423

    Any translation for that? I've printed an array...

    Any translation for that? I've printed an array of object like that before, but it was probably different.


    EDIT

    Im supposed to print the results in an array. am i even going about it the...
  14. Replies
    6
    Views
    13,423

    Bad Print out method...

    Ok once again with the same program. I was trying to run it jsut to see if it printed out correctly. but it gave me some wierd error. ill post all files that are needed and the error im getting.

    ...
  15. Replies
    2
    Views
    7,223

    AHHH i knew it was somethign like that. i had...

    AHHH i knew it was somethign like that. i had looked at it like 10 times and didnt notice that...

    thanks again!
  16. Replies
    2
    Views
    7,223

    Very confusing...

    Ok i am working on this program that deals with inheritance. I start out with a Student parent class then i am going to have a college, middle school, and high school children.

    Currently i have...
  17. Replies
    2
    Views
    8,046

    That makes sense and it is working now. Thanks...

    That makes sense and it is working now. Thanks Twey
  18. Replies
    2
    Views
    8,046

    Cant find variables?

    I am working on this program in which im trying to gather information about certain things. But when i try to compile it says a variable is not found, even though it is clearly defined. Its not...
  19. Replies
    6
    Views
    9,433

    I am confused by what your saying. What needs to...

    I am confused by what your saying. What needs to be done to initialize it?

    ***edit***
    Nevermind i understand what you are saying. THANKS!!!
  20. Replies
    6
    Views
    9,433

    Ok this is the error i am getting when i try and...

    Ok this is the error i am getting when i try and run it.


    ANd here is my code.

    import javax.swing.*;
    // main driver class
    import javax.swing.JFrame;

    public class Project4b
  21. Replies
    6
    Views
    9,433

    OK. 2 and 3 were right. Main is in my driver...

    OK. 2 and 3 were right. Main is in my driver script. I fixed those 2 things and now im getting the error

    edit--------------
    i got it to compile but its not working. everything else is the same...
  22. Replies
    6
    Views
    9,433

    Equation program

    I am trying to write a program where the user inputs a number and presses a button and then it plugs the number into an equation and gives an answer. Here is the code I am working with. Im getting...
  23. Replies
    1
    Views
    7,691

    returning multiple items

    if i needed to make a method to get a full name and return first and last names would i do it somehting like this?



    public String getFullName
    {
    return firstName;
    return lastName;
    or
    ...
  24. Thread: constructors

    by craigtb
    Replies
    13
    Views
    21,152

    include meaning contain it. ( im really not...

    include meaning contain it. ( im really not sure). i think its saying that i need to have it in it. I think what you have might be what i need but i dont understand the this.income, this.address etc...
  25. Thread: constructors

    by craigtb
    Replies
    13
    Views
    21,152

    Im doing somethign that makes me need to write a...

    Im doing somethign that makes me need to write a constructor that includes the name of a person, their address and income. How would i do that?
Results 1 to 25 of 38
Page 1 of 2 1 2