Search:

Type: Posts; User: j2me64

Page 1 of 2 1 2

Search: Search took 0.35 seconds.

  1. Replies
    3
    Views
    1,701

    Re: Need explanation of the code

    @db: even if you've a good knowledge of java, you need some experience to figure out that the following statement


    if ((yyyy % 4 == 0) && !(yyyy % 100 == 0) ||
    (yyyy % 400 == 0))

    is...
  2. Thread: Arrowkeys

    by j2me64
    Replies
    3
    Views
    1,021

    Re: Arrowkeys

    the following link give you a good explaination how to move smoothly pics.

    How To Move Image Smoothly

    let me know if this answer your question.
  3. Thread: Arrowkeys

    by j2me64
    Replies
    3
    Views
    1,021

    Re: Arrowkeys

    can you please post also the file man.png, thanks.
  4. Replies
    8
    Views
    8,382

    [SOLVED] Re: How to Iterate through a string?

    public class FindChars {

    public static void main(String[] args) {
    String s = "find all ie sequencies or sequences?";

    int i = 0;
    // loop only till length()-1, since the last char is...
  5. Replies
    1
    Views
    1,335

    Re: ArrayIndexOutOfBoundsException

    you get an ArrayIndexOutOfBoundsException because the index of an array is zero-based and the length field of the array is not zero-based. so if you want to get the last char in the array you must...
  6. Re: New to Java I need help with a simple mistake

    remember the word pic which tell you the order

    p package
    i imports
    c classes
  7. Re: converter program, problem with action listener

    when you instantiate the new ActionListener you must overwrite the method actionPerformed(), so here is a small example you could use for your code:



    JButton b = new JButton("Push me"); //...
  8. Replies
    2
    Views
    32,642

    [SOLVED] Re: JUnit initialization error

    hello, i just imported your code in eclipse and i could compile and run your JUnit code succesful. what i created in eclipse is the following: i create a new source folder named test and then i...
  9. Replies
    3
    Views
    1,317

    Re: paying off dept ( can't make it stop at 0 )

    hello bossmeister, your while-loop runs only until the variable schuld is >= 0 and then stops. the schuld variable is calculated with the formula (schuld + rente) - af. in order to become 0, you must...
  10. Replies
    13
    Views
    2,144

    Re: Help about Graphics

    look at this approach for drawing forms. first of all you need a frame that holds the canvas for your paintings. here is the code of the DrawableFrame.java


    public class DrawableFrame extends...
  11. Thread: Im lost....

    by j2me64
    Replies
    1
    Views
    992

    Re: Im lost....

    i wrote an example for you. the code is not perfect, but runs without errors as long the input is correct. i hope, you got the idea, so you can enhance your own code.


    import java.io.*;

    public...
  12. Replies
    1
    Views
    445

    Re: Whats wrong with Java's Private Membership

    no, the default access means the the element is visible/accessible inside the same package. so, because the class room is in the same package like the main, also the variable x and z are visible. to...
  13. Re: Basic program which gets cost, adds tax, gets payment then calculates change.

    unless the access modifier allow this.



    right. but also here the access depends on the access modifier the variable has been declared.
  14. Replies
    3
    Views
    634

    Re: Something wrong with the import things

    add the j3d-jars to your classpath. can you please attach the file hand1.obj?
  15. Replies
    4
    Views
    1,269

    Re: i need help for this program.....

    i wrote a countdown class the take a jlabel as argument in its constructor and displays the time in the jlabel. here is the code


    import java.util.Timer;
    import java.util.TimerTask;

    import...
  16. Thread: interface

    by j2me64
    Replies
    5
    Views
    1,066

    Re: interface

    unless the class itself is declared abstract.
  17. Replies
    2
    Views
    639

    Re: How to fix this?

    assuming that the edit_name column in the database table is defined as a char, then your assignment should be

    edit_name='a'

    and so on.
  18. Replies
    50
    Views
    2,658

    Re: Help with programe please

    for me the usage of the classes in these application is obscure. i don't know if i'm up-to-date with the code in each class, but suppose i have to run a bank that offers saving and current accounts...
  19. Re: How to install a JDBC driver in Eclipse? And where to take it from?

    Q1: i've never used a cummity server. if you want to be independent why not install MySql.

    Q2: the my sql website has a download page called MySql Connectors where you can download all kind of...
  20. Replies
    2
    Views
    518

    Re: bit of help please...

    hallo, your array is declared with int[10] so the range for the index is from 0 to 9. now, the expression numArray[1 + rndmNo.nextInt(99)] generate an index between 1 and 100, which cause an...
  21. Replies
    5
    Views
    805

    Re: Aligning Issues in the Output

    i would create a class Hurricane that holds all your hurricane fields and then inside the main-method i would declare an list of arrays like ArrayList<Hurricane) hurricanes = new...
  22. Re: New to Java....still learning...Help Required

    when you start a java program the jvm is looking for a method main with exactly this signature

    public static void main(String[] args)


    this is the entry-point of your program. if the jvm...
  23. Replies
    9
    Views
    879

    Re: CardGuesser. Stuck on Card class HELP!

    i don't really understand what you mean with 'before' but you could use this example


    /**
    * Returns - 1 if anotherCard's suit is before, 0 if equal to and +1 if
    * after. The order is...
  24. Replies
    2
    Views
    497

    Re: Code stopping, need help fast.

    don't be so hard to you, this can happen.
  25. Replies
    50
    Views
    2,658

    Re: Help with programe please

    hello, the code of the class BankManager is missing. can you post also this class? other question: the class BankAccount is ok butcould you please explain why you declare another one named...
Results 1 to 25 of 38
Page 1 of 2 1 2