- 9
Alright i posted it, its public but it needs some fixing.
contact me on Kik- kik_le
15 Respuestas
+ 4
In Story Main your missing 2 } brackets before the "public static void printArray" function.
Also, I'm pretty sure code playground doesn't work by putting 2 classes in different files. It will not recognize that you are trying to create an object of the Story Mode. You will need to combine them into the same file for codePlayground.
Ex/
Like this:
class StoryMain{
public static void main()....etc
}
class StoryMode{
public String method1()...etc
}
You also cannot add a space in your naming of methods.
public String method 1 should be like I wrote it above: public String method1
+ 5
If you got a question (about a code) just post it in here
+ 5
a secret?
+ 4
I mean litteraly what are you saying when you say 'it'. Which code, Story or Story Mode? They both don't work. You posted Java code as Javascript, those languages are not the same.
+ 3
What is 'it'.
+ 1
$$
+ 1
oh sorry, this is like my first time I'm inexperienced, and they are suppose to work together, I have all the code there but i need help making it work, Story is the main and story mode it just the rest of the code, and I didn't know how to set it as Java code.
+ 1
lol, it's not a secret😂
+ 1
Latrell, listen to what people are telling you buddy.
Java code in a JavaScript file, will never ever work. Your CPU has to interpret that code, it first has to build it. If you run a JavaScript file with a different language's code, it's not going to recognize the code. It's like if you asked me to write directions to you in English and I sent you directions in Porteguse. You wouldn't know what I said, hence it's not going to work.
+ 1
You can. Just switch the language to Java in the Playground
+ 1
Click the back button out of this convo, go to the page that has curly brackets, click the +, click Java. There you go
0
it's just something simple, sentences suppose to make a story.
0
oh yeah I understand that, but what I'm trying to say is, you can't use Java code on here can you?
0
Thanks that's what I was asking.
0
Thank you very very much for the advice.