Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Java beginners guide/introduction Mon Mar 12, 2012 7:03 pm | |
|
THIS IS UNFINISHED. I'M JUST TOO LAZY TO SAVE IT TO MY COMPUTER.
Alright, I had a conversation with a new guy named icywolverine that inspired me to make this, I don't pretend to know a lot on the subject, but i can decently code, and I know basic program structure a bit Basically, this is for people who don't now where to start, and aren't sure what you need. first of all, and most importantly, computers talk in numbers, if you don't know basic math, you WILL NOT be able to learn any coding language, except maybe labview, but I'm not talking about that also algebra is essential, I just can't think of any specific examples right now, other than, of course, almost every advanced function you will ever write is expressed in numbers. on to the.. introductory thing? tutorial? whatever. the very basic of all coding languages is the transfer of information, that's essentially all you are doing, even minecraft just tells the screen to display things, and store certain things for later use. for thos of you that want to know, iformation is processed by transistors, which, electronically, have 2 inputs and one output, kinda of like a "T" another thing you should know is that the smallest unit of computer information is a bit. A bit can be either 1 or 0. eight bits make up a byte, which is usually used as for a given space of memory also, the terms you will see in (I think) every modern language, possibly every computer programming language, are the following. - Spoiler:
the first terms ( I think they're called something else) I will go over are used to declare variables. a variable, is simply a space on the memory(AKA main memory, AKA RAM, not the hard drive) reserved for some type of value, whether it uses all of that memory is irrelevant, it(that block of memory) is still reserved, and unusable by anything else
byte- this declares an integer variable, but it only stores (up to) a byte of memory, which Is equal to 255 positive numbers, at least in java.
int- this stands for integer, if you don't know what an integer is, you probably can't learn java, go back over your algebra, or learn it for the first time, depending on your age/grade
long- this is a massive version of int, it stores a few billion numbers I think, or millions, it is used for massive amounts of data like the exact time since certain point in the seventies, or possibly how many grains of sand there are in a square mile
float- it stands for floating integer, as in a floating ".", as in 20.00000432
double- Called double because it has twice the storage space as a float
boolean- it holds a yes/no value, boolean variables are the very core of programming, it is used in brancehs and loops (control structures, I'll get to them soon enough)
char- a variable that holds a single character
String- a string of characters, its not really a (i'll finish this later, have to sleep)
if you don't understand something, which is very likely, i suck at writing structure, say so in the comments and ill change it
Last edited by CoalMiningAlchemist on Tue Mar 13, 2012 1:49 pm; edited 2 times in total | |
|
Tiel+ Lord/Lady Rear Admiral 1st
Posts : 5497 Join date : 2012-02-20 Age : 27 Location : AFK
| Subject: Re: Java beginners guide/introduction Mon Mar 12, 2012 8:29 pm | |
| May want to import this into word and right click the squigglies It was a bit helpful, I kinda hope you expand on it. | |
|
Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Java beginners guide/introduction Mon Mar 12, 2012 11:24 pm | |
| 'course I will, I typed most of this up in an adrenaline fueled 5 minutes
should be better tomorrow
EDIT: damn, I forgot I don't have word on this computer... | |
|
Sponsored content
| Subject: Re: Java beginners guide/introduction | |
| |
|