Ask your own question, for FREE!
Computer Science 11 Online
OpenStudy (anonymous):

.

OpenStudy (anonymous):

@wio @Kainui

OpenStudy (anonymous):

``` public class Test { public static void main(String[] args) { System.out.print("Test"); } } ```

OpenStudy (anonymous):

Copy and paste that. Then try to run it.

OpenStudy (kainui):

Create a Java project, make a new class and name it something, anything, whatever. Test would be a good name, like wio did. To make code blocks like wio did, just use this ` which is at the top left on your keyboard, same as this ~

OpenStudy (anonymous):

Make a new question with a project Euler question. I'll walk you through it as an example.

OpenStudy (anonymous):

Did it compile and run?

OpenStudy (anonymous):

I went run but nothing happened

OpenStudy (kainui):

show us a screenshot of what you're looking at right now.

OpenStudy (kainui):

Actually I'll leave wio to this, give him your medals he's the expert here not me. I'm going to be back in 30 minutes.

OpenStudy (anonymous):

http://puu.sh/9NBxw/04675ba1f2.png

OpenStudy (kainui):

That's good! At the bottom there you had it say "Test". Add this to your code ``` System.out.println("Hey what's up dude?");

OpenStudy (anonymous):

oooh

OpenStudy (anonymous):

nice lol

OpenStudy (kainui):

Yeah, the hard part right now is figuring out what is stuff that is made up by us and what is part of "Java". Try to break/play with code you don't understand to figure it out, this is your first programming advice. Ok I'll be back in 30 minutes have fun.

OpenStudy (anonymous):

http://puu.sh/9NBGj/eca2511d20.png

OpenStudy (anonymous):

Can we make it do a math problem? like 1+1 = ? haha

OpenStudy (anonymous):

This is a bit more advanced: ``` import java.util.Scanner; public class IOTest { public static void main(String[] args) { Scanner input = new Scanner( System.in ); System.out.print("Type something"); String something = input.next(); System.out.print("You typed: " + something); } } ```

OpenStudy (anonymous):

Same result though, isn't it?

OpenStudy (anonymous):

Can you show me what you got?

OpenStudy (anonymous):

Unless you wanted me to type somewhere else as well, but this is what I got: http://puu.sh/9NC2k/cc5e3a0689.png

OpenStudy (anonymous):

yeah, but type something and press enter

OpenStudy (anonymous):

oooh cool haha

OpenStudy (anonymous):

what did you get?

OpenStudy (anonymous):

How do you put a space?

OpenStudy (anonymous):

`String something = input.nextLine();`

OpenStudy (anonymous):

http://puu.sh/9NCkg/6f2ab7a64b.png

OpenStudy (anonymous):

``` System.out.println("Knock knock"); System.out.println("Who's there?"); ```

OpenStudy (anonymous):

This is really cool haha, it tells you if you make an error.

OpenStudy (anonymous):

http://puu.sh/9NCu4/004ecaaf36.png :)))))))))

OpenStudy (anonymous):

Make a new question

OpenStudy (dumbsearch2):

What exactly are you guys doing? :) I'm quite fluent in Java, so if you need any further help @iambatman I would be obliged.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!