The exact code I posted above is what I compiled and ran and it ran with no errors
Type: Posts; User: jonathon6017
The exact code I posted above is what I compiled and ran and it ran with no errors
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...
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...
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...
Per Wikipedia,
Isn't a bug usually a programmer error and since this is my error it would be considered a bug?
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"...
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...
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...
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...