ashleyg48 Posted February 14, 2014 Share Posted February 14, 2014 (edited) Introduction Hello OSBot users, I've recently decided to take up Java as a career + hobby and have decided to start by using online video tutorials provided by NewBoston. If this is allowed I'll be posting my updates to show you guys how I'm getting along. I'd just like to see how beneficial a public progress diary would be for my revision. It has been both me and my friends dream to develop Scripts for Runescape bot's for a while now and since i've recently left college i've decided instead of sitting around I'm going to take up learning a programming language of which would stick by me for life. In addition Java is a very adaptable skill and would benefit me largely when going into further education (Computer science for example) - So if none of that made sense, ill be doing things i've learnt and things i need to learn properly, support is highly needed P.s i'm so sorry if this is in the wrong place i didn't know where to put it so i posted it here D: Many thanks, Ash Little about how I'm learning and my current state The Video tutorials I'm watching are created by NewBoston - The Video I'm currently on is: 35/87 This is the video I'm currently learning by: the method I'm using is: Notepad + pen + when video is finished I use my notepad only to write the method/program out in eclipse to make sure I understand it. IF I don't understand it I recap on the video and re-read my notes. Progress Log || Green = Fully understood || Red = Not a clue || Yellow = In Progress || Familiarizing myself with the IDE System printing (SuchComplexity) Using Ints, doubles (Variables) IfStatements ElseStatements IfElseStatements ForLoops (Now understand Enhanced ForLoops) WhileLoops Using math operators Increment operators SwitchStatements Methods (YAY) Getting user input and creating an application with the users input Handling multiple classes and understanding Objects Have a strong understanding of Strings and how they can be used (understand the basics, will begin to learn in depth about strings as soon as the video tutorial has finished and I can confidently say i'm ready to become more advanced) Using methods with parameters DoWhileLoops Please note the red section is only from viewing the video subtitles, if the method/java skill isn't existing please do tell me xD I'm only clicking on each video ahead of where I currently am and writing below :3 Constructors (multiple constructors, building objects for constructors) Time (Displaying regular time etc) Public and private Set & get methods toString Composition Enumeration Static Final methods Inheritance GUI (Jframe, JButtons, JCheckbox, Jcombo Box, Dropdown list, Jlist, Multiple selection list, Moving lists) Event handling Actionlisteners Polymorphorism Overriding Abstract & concrete classes Mouse event Mouse listener & MouseMotion interface Adapter classes File Classes, creating files, writing to files, reading from files Exception handling Flow layout Drawing graphics And then it'll be onto the intermediate of which I will update the list when the time comes! If i've missed out anything that is major then please tell me so I can add it to the list Java VLog (14/02/14) #DayOneofPosting #DayFourOfLearning Post One: Just learnt Arrays. I will be replying my finds as a comment below as of now so other people wanting to learn Java can learn from my revision notes if they'd like ) Post Two: I will be posting more updates as the day's go on! wont be researching tomorrow as it's valentines day so... Happy Valentines Day all! (16/02/14) Post One:Just began revising again, gona run a recap on the Java scanner utility everything else up to this point is just idle in my head xD - Gona begin learning more about Arrays today. hopefully get a better understanding of the whole concept and abilities of it. Post Two: Just finished learning Enhanced ForLoops and will continue for the next hour (until 4:00am) and then catch some Z's . Have spent 3 hours today learning improvements on my current knowledge and revising past notes. 18/02/14 - 12:43pm (00:43, did originally put 17th but realised i edited it just after xD) Post One:Began recapping on Arrays - Revised multi-dimensional arrays and how to use/make them into tables. Gonna edit forum thread a little bit now and watch the 35th video! Only 52 to go.... (It's better than 87 I guess) 4 Days till competition remember guys! so remember to hit me up with a pm, there's only 1 entry so far CompetitionAs from today I will be doing a weekly bond give away in order to thank the community; not sure if this is able to be put here but anyway. If you would like to enter hit me up with a PM saying "I'd like to enter" and i'll add your name to the text document of which will be inputted into the random name generator! Good luck all. The first prize date will be on the 22/02/14 - Thank you all and good luck! This competition will end when I have written my first Script! (Keep me a bit more motivated too) This weeks Prize is : 2 x RS3 Bonds - Bonds are in-game tradeable items of which are redeemable for in-game membership of which allow the player to play both in RS3 and RS07. Good luck all!(got 7 Bonds in bank ready to be given away) Edited February 18, 2014 by ashleyg48 Link to comment Share on other sites More sharing options...
Nick Posted February 14, 2014 Share Posted February 14, 2014 Good luck Ashley! Can't wait to see your progress and perhaps a future Official Scripter later on. ;) Link to comment Share on other sites More sharing options...
Swizzbeat Posted February 14, 2014 Share Posted February 14, 2014 Goodluck man! You can do it if you need any help from someone in your shoes feel free to send me a Skype message or PM over here Link to comment Share on other sites More sharing options...
Jack Posted February 14, 2014 Share Posted February 14, 2014 You can learn enough java to start scripting in a few weeks if you set your mind to it. Good luck Link to comment Share on other sites More sharing options...
Smart Posted February 14, 2014 Share Posted February 14, 2014 Goodluck! Can't wait to see your future work. Link to comment Share on other sites More sharing options...
ashleyg48 Posted February 14, 2014 Author Share Posted February 14, 2014 Thank you for the support guys, really look forward to becoming a script writer and developer. Would be nice to be fluent in Java. It's been running through my head so much lately to be honest. it's becoming a second brain xD Link to comment Share on other sites More sharing options...
Allen Posted February 14, 2014 Share Posted February 14, 2014 Good work & luck! Stay dedicated too. Learning to program is useful in many aspects other than scripting for a bot as well, so it is very beneficial that you are teaching yourself this. You never know, you may find that it is suitable for a future career ;). Once again, good luck! Link to comment Share on other sites More sharing options...
ashleyg48 Posted February 14, 2014 Author Share Posted February 14, 2014 (edited) I've just finished learning basic Arrays. I will post my revision notes for other users wanting to learn Java basics, please do not take this as Post digging/grave digging or whatnot as this is simply for educational purposes, Even with a high post count it serves no purpose anyway xD Arrays What is an array? A Variable of which can store many values within it, arrays must include the same data type so you wont be able to use both int + String for example. What does an array look like?Here's an example taken from my class This is just declaring the class name etc class Array { public static void main(String args[]) { Now we will be introducing the array... (please follow the color translations to understand what each thing means - if you don't understand don't hesitate to ask, questions lead to answers, answers lead to success...) int thisisanarray[]=new int[10]; thisisanarray = This is the name chosen for the array/array's index. [] = These two square brackets tell Java that you'll be working with arrays. int = This is the data type of which is used for the array. [10]; = This displays how many variables we will be using within the array index (this will be 0-9 variables). Just in case you can't read the array here it is again... int thisisanarray[]new int[10]; Next we need to give the array index each variable, this is how we will be doing it (the basic method) array[0]=87; //This gives array 0 the value of 87. array[1]=202; //This gives array 1 the value of 202. array[2]=69; //Giggidy... This gives array 2 the value of 69. and so on... this continues up until array[9]=(insert number); until the assigned new int has been reached of which in this case was new int[10]; 10 being the value assigned. Now if you would like to print out the result you would like to display you would do as followed... System.out.println(array[2]); This will print out the value of array[2] of which would result in the output being: 69. A more efficient method using arrays would be - I think this is called an array initialize® class Array { public static void main(String args[]) { int thisisanarray[] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; int = This is the data type, can be double or string as an alternative Int's just more of a simple data type...thisisanarray = This is assigning the array a name. [] = Tells Java that you're using Array types. {1, 2, 3, 4, 5, 6, 7, 8, 9}; = these are the values you are giving to the array. So if you'd like to use this array method you'd do exactly as the one before (as followed) System.out.println(thisisanarray[2]); This would print out the array's value of which is 3! {0 = 1} {1 = 2} and so on...If you know anything is wrong please tell me as i'm only a beginner myself and have follower a tutorial myself to learn each part of arrays in order to teach myself and other users. Constructive criticism only please! Thanks for reading I will be adding on more ways of using arrays and more advanced array methods etc as I learn them Edited February 14, 2014 by ashleyg48 Link to comment Share on other sites More sharing options...
Allen Posted February 14, 2014 Share Posted February 14, 2014 class array { public static void main(String args[]) { Capitalize your class names, also since you did not really note it, arrays can also be used for other primitive data types, as well as reference variables(objects). Also this is incorrect: {1, 2, 3, 4, 5, 6, 7, 8, 9}; = these are the values you are giving to the array. So if you'd like to use this array method you'd do exactly as the one before (as followed) System.out.println(thisisanarray[2]); This would print out the array's value of which is 2! thisisanarray[2] would print out the third element in the array, which is 3. thisisanarray[0] has a value of 1 thisisanarray[1] has a value of 2 thisisanarray[2] has a value of 3 etc.. Link to comment Share on other sites More sharing options...
ashleyg48 Posted February 14, 2014 Author Share Posted February 14, 2014 class array { public static void main(String args[]) { Capitalize your class names, also since you did not really note it, arrays can also be used for other primitive data types, as well as reference variables(objects). Also this is incorrect: thisisanarray[2] would print out the third element in the array, which is 3. thisisanarray[0] has a value of 1 thisisanarray[1] has a value of 2 thisisanarray[2] has a value of 3 etc.. Thank you for the constructive feedback, i've made the changes of which I know i can change so far :p The Newboston guy keeps using lowerCase class names so it's becoming a habit... xD And i've not got to the point where we are referencing objects yet so i'll update it when i do Link to comment Share on other sites More sharing options...
Allen Posted February 14, 2014 Share Posted February 14, 2014 Thank you for the constructive feedback, i've made the changes of which I know i can change so far The Newboston guy keeps using lowerCase class names so it's becoming a habit... xD And i've not got to the point where we are referencing objects yet so i'll update it when i do Take a look at this page when you get a chance: http://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html It will tell you some useful stuff about general programming conventions for java. It's good to get in the right habit early so you don't realize you're doing it wrong after you've done it for so long :P. NewBoston is a good source too. Try to find the e-book for HeadFirst Java. That is an amazing book for learning the fundamental principles for Java. (from as little as primitive data types, to polymorphism, inheritance, networking, & concurrency ). Link to comment Share on other sites More sharing options...
ashleyg48 Posted February 14, 2014 Author Share Posted February 14, 2014 Thank you for the E-book name, I've downloaded it now and will have a good read through it each night whilst i'm in bed :p I have issues navigating around the Oracle website to be honest with you... xD It's such an eyesore XD 1 Link to comment Share on other sites More sharing options...
Allen Posted February 14, 2014 Share Posted February 14, 2014 Thank you for the E-book name, I've downloaded it now and will have a good read through it each night whilst i'm in bed I have issues navigating around the Oracle website to be honest with you... xD It's such an eyesore XD I have to agree with that, I'm not a fan of Oracle's website layout :P Anyways, PM me anytime you have questions Link to comment Share on other sites More sharing options...
Swizzbeat Posted February 14, 2014 Share Posted February 14, 2014 (edited) Following on to what @Allen stated above, proper conventions such as indenting, camelCasing, capitalized class names, etc. are just as important as the actual programming. An extremely beneficial resource (like I said before I HATE thenewboston as he doesn't explain anything) would be the Java tutorials from Derek Banas. These videos are on the lengthy side and move extremely fast through lots of different information, but he stresses the important things and explains everything you would need to know in great detail. Here's his first video: Don't be turned off from the amount of material he presents in the short time frame. Just watch the video multiple times and before long (even if you decide to learn the information elsewhere that goes slower) you'll release that watching his video helped tremendously. His whole playlist, a whopping 94 videos, can be found here http://www.youtube.com/playlist?list=PLE7E8B7F4856C9B19 Edited February 14, 2014 by Swizzbeat 1 Link to comment Share on other sites More sharing options...
ashleyg48 Posted February 14, 2014 Author Share Posted February 14, 2014 (edited) Haha, will do. Thank you for the support/suggestions and advice. you're a pleasure to have at OSbot. Alike all other members and thank you Swizz will be watching that tomorrow night aswell then - Lots'a lots'a resources ^_^ Edited February 14, 2014 by ashleyg48 Link to comment Share on other sites More sharing options...