#Need help with coding a calculator

1 messages ยท Page 1 of 1 (latest)

blissful anvilBOT
#

@olive marten has a question:

bernddasbrot_.

can somebody help me i am new to coding and just tried to code a simple calculator but something is wrong and i dont understand what

#

<@&987246399047479336> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

olive marten
#

this is my code

latent dust
#

u cant write code like that outside of methods

#

public static void main(String[] args) {...}

#

this guy

olive marten
#

so like this?

latent dust
#

yeah now it would work. run it, try it out ๐Ÿ™‚

olive marten
#

yeah it worked thanks

#

but what exactly dose String[] args mean

latent dust
#

maybe sth like cd foo

#

or grep blabla

olive marten
#

no

latent dust
#

okay. well its that

#

lets say u made a program called Foo.java

#

then someone could run it from command line and pass arguments

#

java Foo.java Hello Test 123

#

ud receive an array of strings Hello, Test and 123 then

olive marten
#

oh okay

#

thanks