Search:

Type: Posts; User: jonathon6017

Search: Search took 0.10 seconds.

  1. Replies
    25
    Views
    3,638

    Re: Error in IF-Else Code

    The exact code I posted above is what I compiled and ran and it ran with no errors
  2. Replies
    25
    Views
    3,638

    Re: Error in IF-Else Code

    What do you mean? The program runs without error so if I may ask, can I see an example and what will the parenthesis do? I don't mean to sound like a know-it-all, I'm just wondering why I performed...
  3. Replies
    25
    Views
    3,638

    Re: Error in IF-Else Code

    Well I was up till 1 last night trying to get it working and I think I finally did. It will ask for "C or F" Then if C or F is entered it will ask for the temperature and then do the conversion and...
  4. Replies
    25
    Views
    3,638

    Re: Error in IF-Else Code

    Alright I got frustrated and decided to do a complete rewrite. This is what I have so far and it finally compiled and ran successfully.


    import java.util.*;
    public class convert {

    public...
  5. Replies
    25
    Views
    3,638

    Re: Error in IF-Else Code

    Per Wikipedia,
  6. Replies
    25
    Views
    3,638

    Re: Error in IF-Else Code

    Isn't a bug usually a programmer error and since this is my error it would be considered a bug?
  7. Replies
    25
    Views
    3,638

    Re: Error in IF-Else Code

    Sorry for replying so late. At the time of my last post I was away from my computer and was working on my phone through a VNC connection to my computer. Anyways Line 17 is
    if (String) usrInpt = "C"...
  8. Replies
    25
    Views
    3,638

    Re: Error in IF-Else Code

    Do you mind giving me an example on how to use the equals() method

    Here is the full code

    import java.util.Scanner;
    import java.io.*;
    public class converter {

    private static final boolean...
  9. Replies
    25
    Views
    3,638

    Re: Error in IF-Else Code

    I done what you said but now I'm getting errors on the if and the else if statements here is my revised code. hat did I do wrong?



    if (String) usrInpt = "C" {

    Scanner temp = new...
  10. Replies
    25
    Views
    3,638

    Error in IF-Else Code

    Hello,
    I'm new to java and I am trying to learn it as my first language and eventually move to Programming for Android. To get myself started for practice, I am working on a simple...
Results 1 to 10 of 10