My code is not running - i need help (it's in German) SOLVED

<double celsius, fahreinheit;

void fahreinheitt(){
fahreinheit = (celsius*1.8)+32;
String fa = getTextFromConsole("Bitte geben Sie eine Zahl ein: ");
double fahreinheit = Double.parseDouble(fa);
println(“Temparatur in Fahreinheit”+fahreinheit);

void celsiuss(){
celsius = (fahreinheit-32)/1.8;
String ce = getTextFromConsole("Bitte geben Sie eine Zahl ein: ");
double celsius = Double.parseDouble(ce);
println(“Temparatur in Celsius” +celsius);
void keyPressed(){
void setup(){
} >

Hi @cherry,

Welcome to the forum! :wink:

Can you please format your code by using the </> button when editing a message or use ``` around your code ```.

If it’s not running, what is the output in the console? Does the Processing editor tells you where the error is?


thank you! i’ll do it next time, or can i edit the text afterwards? the error is empty but i have the error message NullPointerException in my console

1 Like

thank you very much! this solved my problem :slight_smile: & im also using processing 3.