Search:

Type: Posts; User: aprabhat

Page 1 of 3 1 2 3

Search: Search took 0.59 seconds.

  1. Replies
    4
    Views
    53

    Re: Alternating Numbers Of two sequences

    Can you please explain


    and what's the structure of Sequence Class.
  2. Re: Reading data from a file and setting it to an array

    I suggest it's beneficial for you if you read about scanner class and choose the right method according to your need and file structure.
    you can take a look at scanner class and it's methods Here....
  3. Re: Reading data from a file and setting it to an array

    Is this your input file


    is yes then the problem with your code is
    [code=java]
    demandRate = inputStream.nextInt();
    [code]
    you try to read a line which is "demand rate: 50" using nextInt()...
  4. Re: Throw Error - simple code.....any advice appreciated!

    Welcome to the forum. Please read This to know how to post your code.
    the problem is lies here...


    public static void main(String args[]) {
    throws java.io.IOException; {

    why "throws...
  5. Re: Reading data from a file and setting it to an array

    Paste the full error message that you get and your code has compilation errors like


    fileName = console.next();


    console is instance of which class? is an instance of Scanner.
  6. Replies
    19
    Views
    76

    [SOLVED] Re: Help with Employee Class

    can you paste your modified code and the error message you get this time.
  7. Replies
    13
    Views
    159

    Re: Unparseable Date

    Don't know about any class or method to convert 12h55m20s to millisecond but you can do it easily by some string manipulation and change the seconds to millisecond as 1 second = 1000 millisecond.
  8. Replies
    19
    Views
    76

    [SOLVED] Re: Help with Employee Class

    There is no compilation error in your code but now your EmployeeDemo class in a inner class of Employee class and the compiler didn't able to find the main method.
    close the body of Employee class...
  9. Replies
    19
    Views
    76

    [SOLVED] Re: Help with Employee Class

    employee1.setName("Susan Meyers");
    employee1.setDepart("Accounting");
    employee1.setEmpID(47899);
    employee1.setPosition("Vice President");


    You don't have setter methods likes setName("Emp...
  10. Replies
    13
    Views
    159

    Re: Unparseable Date

    @kennethdizon you'r welcome.
  11. Replies
    13
    Views
    159

    Re: Unparseable Date

    Here is your SimpleDateFormat that you need "yyyy-mm-dd HH:mm:ss.SSSZ" to parse "2014-05-30 06:39:11.482000-05:00".
    Hope this will solve your problem and for more detail try This
  12. Replies
    13
    Views
    159

    Re: Unparseable Date

    SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
    here you are using MM/dd/yyyy HH:mm:ss format to parse a string to date wich is in dd MMM yyyy HH:mm:ss format.

    use
    ...
  13. Replies
    1
    Views
    23

    Re: Sqlite not writable

    It's very helpful if you paste your code.
  14. Re: Open source Java Api for creating Tasks to MS outlook

    Read this may it helps you.
  15. Replies
    6
    Views
    42

    Re: error in type2driver

    You need to add the ojdbc jar to your classpath.
  16. Re: Error using printf function across classes

    Check java version you are using, it is possible that you have Java compiler compliance level 1.4.
  17. Replies
    2
    Views
    22

    Re: Implementing an example into my code

    Welcome to the forum. Please format your code.



    didn't understand what do you want to do.
  18. Replies
    6
    Views
    22

    Re: Comission Calculator not performing

    In Netbeans IDE the editor window is not showing any error symbol may be Netbeans is not able to scan these lines, but in eclipse is properly showing the error in the above mentioned lines.
    If you...
  19. Replies
    6
    Views
    22

    Re: Comission Calculator not performing

    In my IDE I got compilation error in these lines...


    int tempFahr = (int) ((Double.parseDouble(tempTextField.getText())) * 1.8 + 32);
    fahrenheitLabel.setText(tempFahr + " Fahrenheit");

    ...
  20. Re: i dont know where the problem is...help me here

    what do you mean by
  21. Re: i dont know where the problem is...help me here

    Have you got any errors because in my machine your code is working fine.
    It creates a text file with title "Employee.txt" and write the data in that file.
  22. [SOLVED] Re: why is the program not entering the if statement?

    Please format your code for better readability.


    if(pCode[orderNum] == "M3487")


    use equals() method instead of == operator for comparing strings like this..
  23. Replies
    2
    Views
    204

    Re: JVM failed to initialize

    In your InputHandler class you are using

    System.console().readLine().trim();
    to get the input but if you are using any IDE like eclipse then this code is not going to work.

    It's better if...
  24. Re: java.lang.Exception: folder exists, but it is not a directory.

    Please paste your code and full error message for better understanding of your problem.
  25. Replies
    0
    Views
    62

    Write Image Metadata

    I want to add some additional information in a Jpeg image header, Can someone suggest me some algorithm or any api that help me to write additional Tags to Jpeg image metadata.
Results 1 to 25 of 68
Page 1 of 3 1 2 3