Beginners - 1 Basics

Here are some little things you should keep in mind after first installing Eclipse and making your first file.

Identifiers>

In your code, you must have seen a lot of bold colored words(for ex: public static void main). Those words (like public, class, static, etc.) are called 'Identifiers'. Basically, they are Java's vocab words which you cannot use as your own or in different ways.

Comments

Let's say that the only reason why you are making this Lincoln file is to show display the sentence 'A quote by Abe Lincoln: I am Abraham Lincoln'. You never write code without a purpose/requirement/function. So, to make sure you remember why we're writing this file, type the following:
 //display something about Abe 

And press enter. Did you notice that the color has changed? This is called a comment. We use comments to "explain the purpose of the program and describe processing steps". They don't effect our code so we can write as many comments as we want as long as we always start them off with a // for each line of code.
An alternative is to type to close it off. Try it out for yourself
 /* and write as many lines as you want (or just one)
 and then type */ 

White Space

When coding, Java doesn't give a shit about the white space or new lines you have in your code. Meaning, you can put hundreds of spaces and tabs between System.out.println("bla"); (i.e. System   .  out.println (   "bla"   );), and Java will interpret this the same as System.out.println("bla"). The only time a space will make a difference is when it's inside the ""  of the println("') statement. But, even though spaces mean nothing, you should always try to limit your spaces and maintain the same tabs that Java automatically generates (such as between { }) so that your code is readable and not annoying to the people who didn't write it.


More to come soon...
   
  
                           


7 comments :

  1. This comprehensive guide is ideal for someone who is hoping to get ahead of the class by doing some preliminary reading on https://research-paper-writing-online.blogspot.com/2016/07/looking-for-best-research-paper-writing-service.html about Java prior to the start of this semester.

    ReplyDelete
  2. Looking good collection of information, thanks for sharing the useful content please do keep on sharing the valuable stuff...
    Best Online Software Training Institute | Java Training

    ReplyDelete
  3. thank you for being given the opportunity to read this very perfect article. please visit the best sports betting around the world.

    Situs Judi Online

    ReplyDelete
  4. Personally, I really liked this casino,exclusively best online casino especially the choice of games. All games are licensed and with normal returns. I really like how you can choose one-click games here and it’s like a lot of slot machines and slots in your hand.

    ReplyDelete
  5. pretty good site if you like quality honest best online casino sites come in and make sure of it

    ReplyDelete
  6. Great post ! I am pretty much pleased with your good post.You put really very helpful information


    โปรโมชั่นGclub ของทางทีมงานตอนนี้แจกฟรีโบนัส 50%
    เพียงแค่คุณสมัคร Gclub กับทางทีมงานของเราเพียงเท่านั้น
    ร่วมมาเป็นส่วนหนึ่งกับเว็บไซต์คาสิโนออนไลน์ของเราได้เลยค่ะ
    สมัครสล็อตออนไลน์ >>> goldenslot
    สนใจร่วมลงทุนกับเรา สมัครเอเย่น Gclub คลิ๊กได้เลย

    ReplyDelete
  7. This is really good blog information thanks for sharing .I am really impressed with your writing abilities

    เว็บไซต์คาสิโนออนไลน์ที่ได้คุณภาพอับดับ 1 ของประเทศ
    เป็นเว็บไซต์การพนันออนไลน์ที่มีคนมา สมัคร Gclub Royal1688
    และยังมีหวยให้คุณได้เล่น สมัครหวยออนไลน์ ได้เลย
    สมัครสมาชิกที่นี่ >>> Gclub Royal1688
    ร่วมลงทุนสมัครเอเย่นคาสิโนกับทีมงานของเราได้เลย

    ReplyDelete

Follow Me

If you like our content, feel free to follow me to stay updated.

Subscribe

Enter your email address:

We hate spam as much as you do.

Upload Material

Got an exam, project, tutorial video, exercise, solutions, unsolved problem, question, solution manual? We are open to any coding material. Why not upload?

Upload

Copyright © 2012 - 2014 Java Problems  --  About  --  Attribution  --  Privacy Policy  --  Terms of Use  --  Contact