Search:

Type: Posts; User: Hisma

Search: Search took 0.09 seconds.

  1. Re: My JPanel alignment is messy. How can I fix it?

    Thank you Kevin and Christopher. I might actually try both methods and see which gives the best results.

    I already asked this question to my instructor, I know at this point I will get full...
  2. Re: My JPanel alignment is messy. How can I fix it?

    Sorry, I should have been more specific.

    Here is the example I am trying to mimic -

    http://i.imgur.com/Njl4WwQ.png

    Notice how the JTextFields on the WEST are sized to where the content...
  3. My JPanel alignment is messy. How can I fix it?

    Here is a ss of what I am talking about -

    http://i.imgur.com/nJEohJL.png

    I want that particular JPanel to fill it's empty space.

    I am using a layout manager to place 4 JPanels on a JFrame. ...
  4. Re: How to compare the current token with upcoming or previous token using Scanner (or some alternative)?

    interesting. I have no experience with streamtokenizer yet. I will do some reading up on it and see if it helps me out.

    thanks!

    --- Update ---

    I did more research and it looks like reading...
  5. How to compare the current token with upcoming or previous token using Scanner (or some alternative)?

    Say I am reading in a text file that has String codes that represents rows of seats on an aircraft.

    Here is what a line from the file would look like -


    1A XXX XXX XXX 1D 1G XXX XXX XXX...
  6. Replies
    16
    Views
    1,467

    Re: java programing two arrays

    yeah, it seems folks just want people to do their work for them. I can see why the trend is not to spoonfeed or bend over backwards for people.
  7. Re: I can't get my last method to work! What am I doing wrong?

    post the code you have now.
  8. Thread: Hello!

    by Hisma
    Replies
    1
    Views
    755

    Hello!

    Hi Guys

    I am a 31 yr old engineer who is just starting to get deep into java. I am going back to school and taking online programming classes at a state uni. I still consider myself a beginner,...
  9. Replies
    15
    Views
    1,505

    Re: Program due tomorrow. need some advice.

    Right, but the instructions ask for a 2D array.
    "2. Store each line’s data as a row in a 2-D array. Calculate and display the letter grade due each student based on the following rules:"
  10. Replies
    15
    Views
    1,505

    Re: Program due tomorrow. need some advice.

    It would really help to comment your code as well. It would not only help others to understand what you're trying to do with your code, it will help yourself to understand your objective.

    I see...
  11. Replies
    5
    Views
    862

    Re: Error in Java program

    you also defined name as an int at the beginning. It should be a String name, not int name.
  12. Replies
    5
    Views
    862

    Re: Error in Java program

    The user is prompted to enter a name, but you're telling the scanner to expect an int.

    Should be name = input.next() or input.nexLine()
  13. Thread: 1-100 counter

    by Hisma
    Replies
    10
    Views
    1,307

    Re: 1-100 counter

    It'd be much easier to understand if you used the code tags here... but I can help.

    GregBrannon gave a simple way of testing if an integer is even.

    If an integer is not even, then it must...
  14. Replies
    2
    Views
    1,023

    Re: Simple maths equations

    In python, variables do not need to be declared as their datatype is inferred.

    In java, variables must be declared with a type. You can assign sum as an int or a double.

    You'd also need to...
  15. Replies
    16
    Views
    1,467

    Re: java programing two arrays

    Why not try having a go of it yourself?

    This is a very easy problem. First you'd need to construct both arrays and assign values to the indices. Then you'd need to prompt the user for the word...
  16. Replies
    11
    Views
    1,437

    Re: Why Java Data types called primitive?

    primitive data types are the basis for which all objects are derived. So, it's "primitive", because it's the first, the beginning.
  17. Replies
    2
    Views
    1,393

    Re: JUnit - How does it execute it's methods?

    Thanks Greg. You actually answered my question perfectly. Here is the code I was running.

    This is a JUnit test class I created in eclipse -



    package edu.ncsu.csc216.cash_register;
    ...
  18. Replies
    2
    Views
    1,393

    JUnit - How does it execute it's methods?

    Hello all

    I am taking a programming class that is having me test programs using JUnit. I am actually going along quite fine, but I have a question. Do the methods get called in some sort of...
Results 1 to 18 of 18