+ 1
Can anyone dumb down code for me?
Hello! My name is Claire and I'm just starting out my coding journey. Is it normal not to understand the descriptions of the different stuff? Even when things are fully explained I'm still confused.
8 Respostas
+ 2
Perfectly normal.
Is there anything specific you need explained as simply as possible?
+ 5
Yeah, it's perfectly normal. There's a lot to take in. Just be patient, do a little each day and it will start to make sense. Be hands on as much as possible and practice the concepts you have learnt. Good luck.
+ 3
the number 1 thing you need to understand is you wont learn it all overnight or a day.
1. Patience
2. Read some books follow along
3. Have a goal
4. Communities
5. Small programs
Have fun
+ 2
Claire McDowell
All you need to know so far:
public static void main(String[] a)
{
Everything inside of the curly brackets, is where you will place code. (Inside here).
}
The main method is this:
public static void main(String[] args)
The program will begin by running the first line of code inside of this method.
Example:
public static void main(String[] args){
// Run first
// Run second
// Run third
}
The main method is the first method to run in your program.
* A method must also be created inside of a class.
Which is why you see:
class MyClass {
mainMethodStuff(....){
}
}
We can use System.out.println() to print text to the console. (Output stuff).
Words (Strings) must be placed inside quotes.
Ex/
class a{
public static void main(String[] a){
System.out.println("Sup");
}
}
Output: Sup
Do not worry about what each word means until it is atleast taught individually in the course. You will not understand the meaning behind them right away if it is your first time programming.
+ 1
As a beginner, I found it be be useful to memorize this one line:
public static void main(String[] args)
You will need to use it for every program and your IDE might not autoinsert it for you. Also, as you learn, you will uncover more and more meaning of it.
Also, don't just read the course, try to put everything you read into code you can run and get output. If you can, get a real Java IDE like IntelliJ IDEA of computer, or, if you don't have one, use code playground here (but I don't recommend it). If you have any more questions, ask here.
+ 1
Hey, Its perfectly normal...Sololearn gives a bit detailed explanation. I would highly recommend a book "Headfirst java:second edition" you can download the pdf if want to. It is meant for beginners and has helped me a lot, although it is java 5.0, it WILL make you UNDERSTAND every aspect of java.
0
Rrestoring faith Just this:
class MyClass {
public static void main(String[ ] args) {
System.out.println("I am learning Java");
}
}
0
Rrestoring faith ok, thank you for explaining. I hope I fully understand soon! :)