Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,193,564 members, 7,951,359 topics. Date: Tuesday, 17 September 2024 at 02:41 PM |
Nairaland Forum / Science/Technology / Programming / Java Tutorial For Beginners (24115 Views)
C++ Tutorial For Beginners... Part 1... / For Beginners: Learn How To Create A Simple Android Native App / Programming Challenge For Beginners N20000 (2) (3) (4)
(1) (2) (3) (4) (5) (Reply) (Go Down)
Re: Java Tutorial For Beginners by nnasino(m): 12:46pm On Dec 14, 2014 |
DonaldGenes:... |
Re: Java Tutorial For Beginners by romkey(m): 1:39pm On Dec 14, 2014 |
this can be regarded as the best thread ever. 1 Like |
Re: Java Tutorial For Beginners by nnasino(m): 2:30pm On Dec 14, 2014 |
romkey:wow, thanks man, appreciate that. |
Re: Java Tutorial For Beginners by gememerald(m): 3:54pm On Dec 14, 2014 |
@OP how do you integrate opengl with java for 3d programming? |
Re: Java Tutorial For Beginners by Lordmykel(m): 5:24pm On Dec 14, 2014 |
#following |
Re: Java Tutorial For Beginners by nnasino(m): 5:31pm On Dec 14, 2014 |
gememerald:you canuse the JOGL wrapper/binder |
Re: Java Tutorial For Beginners by gememerald(m): 6:30pm On Dec 14, 2014 |
nnasino: Does it come with netbeans or eclipse or I have to download the library seperately? @OP |
Re: Java Tutorial For Beginners by Yinkash100(m): 8:07pm On Dec 14, 2014 |
Thanks bro i must follow |
Re: Java Tutorial For Beginners by nnasino(m): 7:19am On Dec 15, 2014 |
gememerald:you download d library separately |
Re: Java Tutorial For Beginners by uyigideon(m): 8:20am On Dec 15, 2014 |
Please sir, I want to build mobile application on phonegap, i was ask to get Ios and Adriod Key to be able to build, because i am completely novice, but i was given a free mobile App to Edith and build on Phone gape, i have downloaded Java on my desktop, but i don't no how to set the home page to get my license key i was ask to get. Please help me out with this. |
Re: Java Tutorial For Beginners by gememerald(m): 8:41am On Dec 15, 2014 |
nnasino:Thanks |
Re: Java Tutorial For Beginners by Nobody: 10:08pm On Dec 15, 2014 |
For those into ".NET", lets create our own thread. VB.NET, C#.NET and Microsoft sql server. |
Re: Java Tutorial For Beginners by sampark201: 1:48am On Dec 16, 2014 |
Sir , Do you give Private Tutorials.. |
Re: Java Tutorial For Beginners by nnasino(m): 8:49am On Dec 16, 2014 |
uyigideon:I don't understand your question. but I don't think you need Java to build phone gap applications. |
Re: Java Tutorial For Beginners by nnasino(m): 8:51am On Dec 16, 2014 |
sampark201:sorry, I don't. |
Re: Java Tutorial For Beginners by uyigideon(m): 12:39am On Dec 17, 2014 |
This was the instruction given to me: Generating a private key Download and install Java. Set Java_Home directory (http://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/index.html). Open the command prompt (cmd.exe) as an Administrator, then Run the following command: $ keytool -genkey -v -keystore [keystore_name].keystore -alias [alias_name] -keyalg RSA -keysize 2048 -validity 10000 Keytool will ask for keystore password. Enter password and confirm: |
Re: Java Tutorial For Beginners by nnasino(m): 12:49pm On Dec 17, 2014 |
uyigideon:Alright, send me a pm and detail where exactly you experience the issue. But i can assure you that you can start development without all these keysigning ish. You can work locally on your system you don't have to use phonegap build. |
Re: Java Tutorial For Beginners by nnasino(m): 12:49pm On Dec 17, 2014 |
Hello everyone, Back to business. Today, i'll digress a little. I'll be teaching some tips and tricks on how to make the best out of your netbeans ide. I'll introduce code templates. Code templates are simply snippets of code which we use frequently and therefore we make them shorter to save us typing. There are many builtin templates in netbeans and we can add ours to them. To use code templates simply type the short form of the template and press the tab key. Some of the inbuilt code templates include: sout -- System.out.println(""//The cursor will be placed within the quotes psvm -- public static void main(String[] args){} St -- String fa -- false if -- if{} ife -- if{}else{} etc Now try the above for yourself. Type them then press the tab key. There are many more built-in code templates available to you in netbeans and not just for java but for most of the languages supported by netbeans. You can check them in the Options>Editor>Code Templates. You can also create your own code templates depending on what you use frequently. We will create a code template for catching exceptions. There should be a builtin template for try catch but we will just create this to show how it is done. Open Options>Editor>Code Templates. Click New, type the short form for your new template, we will name ours error. The template is then created. Within the expanded text area, type the following:
The ${cursor} is where the user's cursor will be placed when the template is inserted. Provided that you setup your shortcuts as we did in the first lesson then the following shortcuts will work for you. If you didn't set them up, then go to options, keymap and change netbeans to eclipse. Ctrl-shift-O == This is to organize your imports. That is, if you use classes in your code which you need to import, pressing this shortcut helps you automatically import them. Try this, type Scannerand press Ctrl-shift-O. this will add import java.util.Scanner;to the top of your file. Ctrl-shift-F == format code. This is used to format your code. This handles your indentation and generally makes your code look better. That's all for now. I'll be back soon. Cheers |
Re: Java Tutorial For Beginners by god2good: 10:13pm On Dec 17, 2014 |
Thanks Man 1 Like |
Re: Java Tutorial For Beginners by haibe(m): 12:54pm On Dec 18, 2014 |
nnasino:i dont get, I thought double' was for numbers with decimals? Shouldn't 'int' be used Instead? |
Re: Java Tutorial For Beginners by haibe(m): 1:15pm On Dec 18, 2014 |
nnasino: public class Simpleinterest { public static void main (String [] args){ int principal = 2000; int rate = 5; int time = 5; int result = (principal * rate * time)/100; System.out.print(result); } } |
Re: Java Tutorial For Beginners by mgb4reel(m): 9:42pm On Dec 18, 2014 |
haibe:Nice attempt bro but it would be better if you make it interactive by letting the users provide the values for the variables(principal, rate, and time). Also, the variables declarations you use aint the best to use. Nice one once again. Lets keep the ball rolling. Thumbs up to boss nnasino, Jah bless! 1 Like |
Re: Java Tutorial For Beginners by nnasino(m): 7:20am On Dec 19, 2014 |
haibe:The principle might have a decimal that's why we used double. Generally, when dealing with money we usually use doubles. Also, when we divide by 100 the result could be a fraction so we need to be able to represent fractional numbers. 1 Like |
Re: Java Tutorial For Beginners by realowded(m): 3:56pm On Jan 10, 2015 |
nnasino: Boss! Please keep the ball rolling... I have jst got a laptop and a generator... I want to perfect my java skills in two months... |
Re: Java Tutorial For Beginners by realowded(m): 12:32am On Jan 16, 2015 |
nnasino:Please bro, explain each line of codes... |
Re: Java Tutorial For Beginners by nnasino(m): 8:53am On Jan 16, 2015 |
Good morning everyone, a happy new year to you all. Sorry I've been AWOL for so long. I'm having issues with my connection and I'm not comfortable writing with my phone but as soon as I resolve that, the thread will be revived. |
Re: Java Tutorial For Beginners by nnasino(m): 9:41am On Jan 16, 2015 |
realowded: realowded: class Primes{ Alright, explanation line by line line 1: We define our class Primes line 2 to 10: The function isPrimetakes an integer as input and returns trueif it is a prime number and false if not. line 2: declare the function. staticmeans that we don't need to create an instance of the class Primeto use the function. booleanis the return type of the function and isPrimeis the name of the function. within the parentheses, we specify that the function will take an integer as its only parameter line 3-4: if the number is equal to 2 return true; (2 is a prime number) line 5: Loop starting from 2 up to the number - 1. line 6-7: If the number can be divided without remainder by any of these numbers then it is not a prime so we return false; line 9: If at the end of the loop (the we know that there is number from 2 to the number -1 that divides the number in question without remainder. Therefore, it is a prime number and we return true; line 11: This is the main method which will be executed by the JVM. line 12: Variable for holding the maximum number which will be fetched from the user line 13: Create a Scannerobject ( this is used to read input from the user) line 15: Read an integer from the user line 16: Create a variable that will keep count the number of primes line 17: Loop from 2 to number; 2 Likes |
Re: Java Tutorial For Beginners by swankylay(m): 7:20am On Jan 27, 2015 |
Wow. Cool. Pls I v a del latitudel core i5 4gig ram 320 HDD. I wanna learn. How do I her started. I tried dloading from that link but I just got confused. Pls gimme a step by step easy way to DL n what exactly to DL. Thanks my teaxhers |
Re: Java Tutorial For Beginners by sunnico(m): 11:47am On Jan 27, 2015 |
swankylay:1. first to download the Java jdk a. copy and paste the following address:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html b. click on the accept license agreement, c. Then click on the download link that includes your system platform e.g window xp/7/8, with your corresponding system architecture either 32 or 64 bit, and then install it 2. To download the Netbeans IDE a. copy and paste the following address:https://netbeans.org/downloads/index.html b. ensure that the platform is in windows(i.e your os platform)although by default the selected platform on the web is windows. b. you can download the one that has all features 1.e 205 mb I Hope this Helps 1 Like
|
Re: Java Tutorial For Beginners by swankylay(m): 9:02pm On Jan 27, 2015 |
Wow. Thanks this will surely do. sunnico: |
Re: Java Tutorial For Beginners by leye4u: 8:25pm On Feb 10, 2015 |
looks like the lecturer here is on strike..... please call off the strike please |
What Programming Language Is Used In Creating Viruses? / Difference Between Computer Science And Computer Engineering / My New Excel Dashboard
Viewing this topic: 1 guest(s)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 74 |