Search:

Type: Posts; User: vanDarg

Page 1 of 3 1 2 3

Search: Search took 0.28 seconds.

  1. Re: how to make program of Depreciation using if statement and loops

    What have you tried? Besides the first 3 years, the depreciation seems pretty simple (1%). What are you having trouble with?
  2. Replies
    5
    Views
    492

    Re: First, simple, two-classed tax program

    First, if you are trying to manipulate variables of the first class with methods, you should define those methods within the first class:

    public class Taxone {

    //naming variables
    double...
  3. Replies
    5
    Views
    492

    Re: First, simple, two-classed tax program

    What are you trying to accomplish? And please use code tags
  4. Replies
    7
    Views
    3,341

    Re: Calculator Using AWT

    Ditto. If you can't figure out where to place brackets. Cut back to the basics.
  5. Replies
    6
    Views
    390

    Re: Output not coming through properly

    Great! Hope I helped.
  6. Replies
    2
    Views
    1,921

    [SOLVED] Re: Student grading application

    I'm sure you know how to calculate average: average = total of scores / number of scores

    To calculate each students grade:
    Loop through each student, keeping track of the total scores. After...
  7. Replies
    6
    Views
    390

    Re: Output not coming through properly

    I'm not sure what you mean. Instantiating only one object will still allow you to use all methods defined within the CircleRadius class.
  8. Replies
    6
    Views
    390

    Re: Output not coming through properly

    I think the reason you are having the incorrect output is because you are creating too many objects. You don't need a separate object for each calculation. The radius determines the rest of the...
  9. Replies
    7
    Views
    3,341

    Re: Calculator Using AWT

    An "illegal start of expression" error is usually caused by either forgetting a closing bracket '}' or by forgetting to use a delimiter ';'

    It can also be caused by nesting a method within another...
  10. Re: Simple while loop exercise but problem with stopping when empty line is typed.

    I would alter the condition of the while loop for this:


    while (the string is not empty)


    in combination with a different scanner method...
  11. Replies
    2
    Views
    647

    Re: Issues with writing to text file

    Without seeing any code, we can't possibly speculate on whats going on.
  12. Re: problems getting past the out of bounds error

    Maybe a long shot but...this isn't for Troy's class is it?

    Anways, do you want to just copy a part of the picture, and have white space next to it? Or do you want nothing next to it at all, and...
  13. Replies
    3
    Views
    945

    Re: Another beginner to Java!

    Please put your code in highlight tags


    import javax.swing.*;
    import javax.swing.UIManager;

    public class square
    {
  14. Replies
    3
    Views
    1,669

    Re: Array list returns null

    Looks like the object (of type State) hasn't been initialized.

    If you are certain you are initializing it, you may want to check over to see if you are waiting for user input or something...
  15. Replies
    13
    Views
    2,186

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    I can't tell by your code, but I'm not sure if or how you are storing the data. You can input the data into arrayLists, and from there search through those arrayLists. I'm not exactly sure if this...
  16. Replies
    2
    Views
    1,138

    Re: Help with creating random circles

    Can we help you? Yes. Can we do it for you? No.

    What part of the program are you having trouble with? What code have you written? Have you written anything other than what was provided?
  17. [SOLVED] Re: Creating a ServerSocket - Trying to save logs from a Wireless Linksys Router

    Thanks for your help, I was able to come up with a solution. The router was sending UDP packets, not TCP packets. Further, it was timing out because UDP differs from TCP in that UDP does not create a...
  18. [SOLVED] Re: Creating a ServerSocket - Trying to save logs from a Wireless Linksys Router

    Yeah it definitely is, I have a similar program written in C and it receives information and displays it in my terminal and log files. When I run this other program all I have to do is disconnect and...
  19. [SOLVED] Re: Creating a ServerSocket - Trying to save logs from a Wireless Linksys Router

    Sorry, I forgot to list the exception. After it times out, I do get a timed out exception:



    Success!
    Couldn't!
    Accept timed out
  20. Replies
    2
    Views
    2,967

    Re: Help with method plz..

    You have to write a constructor here, which takes 3 parameters. A string for name, an integer for age, and a boolean value for a Perry fan.

    This constructor should also call a constructor for a...
  21. [SOLVED] Creating a ServerSocket - Trying to save logs from a Wireless Linksys Router

    Hello friends, I have written a program which opens up a socket on port 514. This is to accept and save logs from my wireless WAP54G router. I would like to eventually be able to use a buffered...
  22. Replies
    13
    Views
    2,186

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    If this the only code you have, and it takes three minutes to compile, then there is likely something wrong with your computer or some configuration. On the other hand, if it is taking three minutes...
  23. Thread: Help please!

    by vanDarg
    Replies
    6
    Views
    287

    Re: Help please!

    For starters, principal, rate, and total are all of type double. Either change the types to int, or use the method nextDouble() rather than nextInt(). You may also want to tell us why it won't run....
  24. Replies
    5
    Views
    1,241

    Re: ReadWrite program advise

    You don't have to create a separate class for sorting an array of ints. Just write a separate method for it.
  25. Replies
    1
    Views
    488

    Re: Methods and Exceptions

    If you want user input via a console, use a scanner. The BufferedReader is for reading in the contents of a file.
Results 1 to 25 of 65
Page 1 of 3 1 2 3