@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...
Type: Posts; User: j2me64
@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...
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.
can you please post also the file man.png, thanks.
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...
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...
remember the word pic which tell you the order
p package
i imports
c classes
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"); //...
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...
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...
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...
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...
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...
unless the access modifier allow this.
right. but also here the access depends on the access modifier the variable has been declared.
add the j3d-jars to your classpath. can you please attach the file hand1.obj?
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...
unless the class itself is declared abstract.
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.
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...
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...
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...
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...
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...
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...
don't be so hard to you, this can happen.
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...