Search:

Type: Posts; User: kamalivy

Search: Search took 0.19 seconds.

  1. ContainerImpl$MissingDependencyException --- Please Help

    Hi,

    I am trying to run the JUnit test cases for my java code. And I'm stuck with the following Exception. Can anyone please help?



    The configuration file is in the required path. I don't...
  2. Re: Exception in thread "main" java.lang.NoClassDefFoundError: simple (Newbie)

    Hey Scotty!

    --> C:\Users\Scotty>cd D:\JAVA

    This line won't take u to the D:\JAVA location. Instead, it will still be in C:\Users\Scotty.
    You need to first go into the D drive by giving

    ...
  3. Replies
    4
    Views
    5,090

    Re: ClassCastException

    I've realized my mistake. I'm passing an Object but MessageFormat.format() is expecting an Object[] :(
  4. Replies
    4
    Views
    5,090

    ClassCastException

    Hi,

    I have the following piece of code. It's basically a method which formats a message (text) containing date.

    public static String fmtDate(String fmt, Object arg, Locale locale, String fe) {...
  5. Replies
    9
    Views
    8,164

    Re: Printing Sum of Primes of a number

    You need to go step-by-step. First find whether a number is prime (so, write a method which tells whether a given number is prime) and then add it to the sum (write a method which adds only prime...
Results 1 to 5 of 5