nanosani 20 Technize.net addict Team Colleague

dunce --> stupid

nanosani 20 Technize.net addict Team Colleague

See if this function works :

public void calculatePrime(int number){
   for( int i = 2; i < number i++){
      if((number % i) == 0){
         System.out.println("The number you entered is not a prime");
         return;
      }
   }
   System.out.println("The number you entered is prime");
}
nanosani 20 Technize.net addict Team Colleague

Okay I'll try to find some for ya.

nanosani 20 Technize.net addict Team Colleague

annoying site --> dumb head

nanosani 20 Technize.net addict Team Colleague

now that I have downloaded the client ... the applet starts working fine lol :D

nanosani 20 Technize.net addict Team Colleague

You know Dani ! I had to download the whole mirc client only bcuz the chat applet on daniweb was not working ... the error it displayed was : couldnot find the specified applet.

nanosani 20 Technize.net addict Team Colleague

owww ! I misunderstood you ... okay let me try n then I'll post the solution for you

nanosani 20 Technize.net addict Team Colleague

pie --> chart

nanosani 20 Technize.net addict Team Colleague

have you tried the boot time scan ?? some viruses wont go away when the windows has loaded.

nanosani 20 Technize.net addict Team Colleague

you should be installing the driver of your vga card not the monitor ...

nanosani 20 Technize.net addict Team Colleague

to make it display some where but not in the way

what does this mean ????
where do you want it to be displayed ??

if I were coding ... I would have put it in the startup and check for date and time ( Calendar class) everysecond or so ... and then set it visible on the specified time.

nanosani 20 Technize.net addict Team Colleague

thats a great achievment ... congrats Dani and all daniweb geeks

nanosani 20 Technize.net addict Team Colleague

I use myIE2 ... its like IE with a lot more options. I have tried firefox it runs very heavy on my pc .. and I've tried IE ... it has al lot of problems with its downloading and browsing capabilities.

nanosani 20 Technize.net addict Team Colleague

latin --> American

nanosani 20 Technize.net addict Team Colleague

okay I give you a raw idea about your program ... if still you cant understand ... post again...

input n1 from keyboard
check if its square is greater than nbr
if yes put flag1 = n1
if no put flag1 = 0

input n2 from keyboard
check if its square is greater than nbr
if yes put flag2 = n2
if no put flag2 = 0

input n3 from keyboard
check if its square is greater than nbr
if yes put flag3 = n3
if no put flag3 = 0

compare flag1, flag2 and flag3 for the highest number
eliminate the highest
compare the other two left for the highest number
eliminate the highest

the last number left is what should be printed.

nanosani 20 Technize.net addict Team Colleague
import javax.swing.JOptionPane; // program uses JOptionPane
public class EvenOdd {

/** Creates a new instance of EvenOdd */
public EvenOdd() {
}

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String Number; // string entered by user
String result; // a string containing the output

int number; // number to be read
int even; // number if even 
int odd; // number if odd

// read number from user as a string
Number = JOptionPane.showInputDialog( null, " Enter a number" );

// convert number from type String to type int
number = Integer.parseInt( Number );

// initialize result to empty String
result = "";

if ( number%2 == 0/2 );
result = result + Number + " is EVEN ";

// Display results
JOptionPane.showMessageDialog( null, result, " Results ", JOptionPane.INFORMATION_MESSAGE );

System.exit ( 0 ); // terminate application

if ( number%2 != 0/2 ){
result = result + Number + " is ODD ";
}
// Display results
JOptionPane.showMessageDialog( null, result, " Results ", JOptionPane.INFORMATION_MESSAGE );

System.exit ( 0 ); // terminate application


} // end method main

} // end class EvenOdd
nanosani 20 Technize.net addict Team Colleague

I dont understand your question ... why dont you want to print 12 and you want to print 11 ??? both are greater than 100.

nanosani 20 Technize.net addict Team Colleague

what is the file system on the d drive ... and what operating system are you using...?

nanosani 20 Technize.net addict Team Colleague

It is not only the registry that matters ... some programs do have some changes in the system files .... you can use system mechanic to track changes in the registry and your hard drive ...

nanosani 20 Technize.net addict Team Colleague

what exactly are you trying to do ... you can use simple if statements to check whether nbr is greater than zero or not.

nanosani 20 Technize.net addict Team Colleague

haha ! --> *cheers*

nanosani 20 Technize.net addict Team Colleague

If you want to do anything else .. what are you planning to do ... and what exactly are the errors you are getting.??

nanosani 20 Technize.net addict Team Colleague
import javax.swing.JOptionPane;
public class FirstProgram2
{
        public static void main (String[] args)
       {
            String school = JOptionPane.showInputDialog("Enter your school name"); 
            String first = JOptionPane.showInputDialog("Enter first decimal number") ;
            String second = JOptionPane.showInputDialog("Enter second decimal number") ;
                

               System.out.println("Your school's name is " + school) ;
               System.out.println("first number you entered is " + first);
               System.out.println("second number you entered is " + second);  

      }
}
nanosani 20 Technize.net addict Team Colleague

run to the hills --> no where to run

nanosani 20 Technize.net addict Team Colleague

So he made

nanosani 20 Technize.net addict Team Colleague

ragnarok --> twlight of gods

nanosani 20 Technize.net addict Team Colleague

the demon did'nt

nanosani 20 Technize.net addict Team Colleague

I came to know today that paypal does not work in Pakistan when I was trying to have a paid subscription for daniweb ... should I be able to pay via credit card ???

nanosani 20 Technize.net addict Team Colleague

how can I edit my right click menu in windows 2000?? it has become very heavily occupied and it takes time to open ...

nanosani 20 Technize.net addict Team Colleague

I recommend you using system mechanic and tuneup utilities for system maintaince.

nanosani 20 Technize.net addict Team Colleague

mustaine --> all hands down ( I didnt find this word in the dictionary .. would you please tell me what does it mean).

nanosani 20 Technize.net addict Team Colleague

threads are lightweight processes(consuming much less resources than the heavyweight processes) which are created by some process.

nanosani 20 Technize.net addict Team Colleague

of the carton

nanosani 20 Technize.net addict Team Colleague

what does atapi mean ? ? and if its a hardware .. what is its function ?

nanosani 20 Technize.net addict Team Colleague

just block everyone and you'll always be offline :D

nanosani 20 Technize.net addict Team Colleague

I have got a philips monitor --- lets make things better:mrgreen: :mrgreen: :mrgreen: :o

nanosani 20 Technize.net addict Team Colleague

which language do you want to use ??

nanosani 20 Technize.net addict Team Colleague

do you mean threads and processes ???

nanosani 20 Technize.net addict Team Colleague

wild --> headless

nanosani 20 Technize.net addict Team Colleague

can you please indent your code properly .. its unreadable..

nanosani 20 Technize.net addict Team Colleague

yes we are a community ... we are like brothers and sisters ... we help eachother ... a warm welcome for you on entering this family:)

nanosani 20 Technize.net addict Team Colleague
nanosani 20 Technize.net addict Team Colleague

papatoetoe --> goofed children

nanosani 20 Technize.net addict Team Colleague

slowly and steadily daniweb is on a rise !!! hope to get a 100 million soon:)

nanosani 20 Technize.net addict Team Colleague

I vote for philips --- lets make usa better:d

nanosani 20 Technize.net addict Team Colleague

have you written a simple program in java ??? if yes ... then public static void main (String [] args) is a function ... in java a function is called a method ... you can write a method like this :

public void methodName(in a, double b){
}

where void is the return type and a and b are the passing parameters.

nanosani 20 Technize.net addict Team Colleague

Wah ! I have a gmail account too ... now how will I get the links .. and what should I be doing to send them over here?

nanosani 20 Technize.net addict Team Colleague

You could use a database and sql to query all that you want.

nanosani 20 Technize.net addict Team Colleague

and suddenly a

nanosani 20 Technize.net addict Team Colleague

grease --> cheese