Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,206,713 members, 7,996,551 topics. Date: Thursday, 07 November 2024 at 11:20 AM |
Nairaland Forum / Science/Technology / Programming / Is It Advisable To Learn Java As My First Programming Language? (16491 Views)
What Was The First Programming Language You Learned And Why? / Let Learn Java Together / Come Here To Learn Java In Pidgin (2) (3) (4)
(1) (2) (3) (4) (5) (6) (7) (Reply) (Go Down)
Re: Is It Advisable To Learn Java As My First Programming Language? by wane01(m): 4:46pm On Jun 07, 2018 |
ClassicMcGee:python has its own originality .. We have languages that have been coined recently or I can say are relatively young . React native was made by devs from Facebook for building not so complex native apps. Go was built by devs from Google also |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 4:48pm On Jun 07, 2018 |
wane01:Thanks i understand that, what i don't understand is while: true. I think you understand cause i don't how to explain. |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 4:51pm On Jun 07, 2018 |
wane01: So learning JAVA/C++/C would make me understand programming basics better, so i can easily switch to a new language? |
Re: Is It Advisable To Learn Java As My First Programming Language? by ibkayee(f): 4:56pm On Jun 07, 2018 |
ClassicMcGee:Sure. It basically executes statements repeatedly as long as the condition (boolean expression) you’ve given is true Syntax while(booleanExpression){ //your statement } Example class WhileLoop{ public static void main(String args[]){ int classicMcGee = 25; //Integer variable set to 25 while (classicMcGee <=30){ System.out.println(classicMcGee); classicMcGee++; } } } 1. So it checks if your condition is true (in this case, we’re checking if classicMcGee who is 25 is less than or equal to 30). 2. If the condition is true, the variable is incremented by however much you’ve set, in this case, classicMcGee++ means it will be incremented by one every time 3. This will continue in a loop until the condition is longer true, so when it hits 30, it will stop. E.g. 25, 26, 27, 28, 29, 30. Infinite while loop example This type of while loop is when the loop never ends as long as the condition given is always true. Syntax is the same you just change the condition class WhileLoopInfinite{ public static void main(String args[]){ int classicMcGee = 25; //Integer variable set to 25 while (classicMcGee = 25){ System.out.println(“ClassicMcGee, don’t you age?”); classicMcGee++ } } } It will print out the line ‘ClassicMcGee, don’t you age?’ infinitely lol 1 Like |
Re: Is It Advisable To Learn Java As My First Programming Language? by Thegamingorca(m): 4:59pm On Jun 07, 2018 |
You are a hot geek ibkayee: 1 Like |
Re: Is It Advisable To Learn Java As My First Programming Language? by wane01(m): 5:02pm On Jun 07, 2018 |
ClassicMcGee:do some research first.. some languages have many branches u can explore like JAVA .. it applies to mobile nd a bit of web (spring) and same also python where u can make softwares and also do web apps using its frameworks. As for the basics python or html can help what separates languages are the syntax structure and a few things |
Re: Is It Advisable To Learn Java As My First Programming Language? by wane01(m): 5:04pm On Jun 07, 2018 |
ibkayee:u wrote in java ... wouldnt it be best if he learns the while loop in python so he can grasp the main message nd recode |
Re: Is It Advisable To Learn Java As My First Programming Language? by ibkayee(f): 5:09pm On Jun 07, 2018 |
wane01:Ohhh I thought he wanted it in Java |
Re: Is It Advisable To Learn Java As My First Programming Language? by wane01(m): 6:24pm On Jun 07, 2018 |
ibkayee:since he wanted to understand the while concept .. I think sumfin simple and straight to the point would be suitable .. Can you do me the favour to write it cc pcguru1 .. 4kings .. olamil34 |
Re: Is It Advisable To Learn Java As My First Programming Language? by ibkayee(f): 7:06pm On Jun 07, 2018 |
wane01:I don’t use python so sorry for any mistakes number = 1 while (number < 10): print number number = number + 1 Output: 1 2 3 4 5 6 7 8 9 Logic: 1. As long as ‘number’ is less than 10, print ‘number’ (eg. number is 1 because it has been set to 1) 2. Add 1 to ‘number’ (eg. 1 + 1 = 2) 3. The value of number is now stored as 2 4. Continue (loop) 5. As long as ‘number’ is less than 10, print number (eg. number is 2) 6. Add 1 to ‘number’ (eg. 2 + 1 = 3) 7. The value of number is now stored as 3 8. Continue...(loop) 9. Stop when the value of number has reached 9 because 10 is not less than 10 Real life logic: As long as (ClassicMcGee practices): ClassicMcGee will improve If he stops he won’t So the condition is that ClassicMcGee practices. As long as he continues to practice he will improve. As soon as he stops he will not improve |
Re: Is It Advisable To Learn Java As My First Programming Language? by Nobody: 7:24pm On Jun 07, 2018 |
ClassicMcGee: Java is actually good, learning C++ might not be a good idea, because you will have to learn alot about C++ and some indepth stuff and understand why certain things should taken into consideration than evn learning the language, but at some point the knowledge of C++ is very strong, you wlll really gain deep insight. however the main question is your drive, if you learn and don't follow up and build something with it, then it means you're just wasting your time. |
Re: Is It Advisable To Learn Java As My First Programming Language? by ToyinDipo(m): 8:09pm On Jun 07, 2018 |
ibkayee:Do you program in Java |
Re: Is It Advisable To Learn Java As My First Programming Language? by ibkayee(f): 8:15pm On Jun 07, 2018 |
ToyinDipo:Not for work, did it at school mostly |
Re: Is It Advisable To Learn Java As My First Programming Language? by ToyinDipo(m): 8:40pm On Jun 07, 2018 |
ibkayee:Oh, I remember you once mentioned it 1 Like |
Re: Is It Advisable To Learn Java As My First Programming Language? by wane01(m): 9:26pm On Jun 07, 2018 |
ibkayee:You've said it all Miss .. What more can I say? 1 Like |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 9:33pm On Jun 07, 2018 |
pcguru1: Noted sir! I think i'll stick with JAVA for now. Thanks, i really appreciate your response. 1 Like |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 9:58pm On Jun 07, 2018 |
ibkayee: Wow! It's amazing seeing a lady that code... Thanks for the simplified version, i really appreciate you finding out time to put a newbie through. How did you start coding? Was it tough? Sorry, I'm just curious. |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 10:10pm On Jun 07, 2018 |
ibkayee: while (ibkayee guides ClassicMcGee) ClassicMcGee will be obliged to learn if she doesn't //what will happen?;" lol! i need to step up algorithm.. i think i get it now,thanks! |
Re: Is It Advisable To Learn Java As My First Programming Language? by ibkayee(f): 10:19pm On Jun 07, 2018 |
ClassicMcGee:Hey dear, I studied it at school. Trust me once you get the hang of it, you'll look back and realise what I did was nothing special lol but I'm happy to help. Learning the syntax isn't that tough, it's the problem solving/how you're to apply the code in certain situations that can be the most challenging, it really helps to practice 1 Like |
Re: Is It Advisable To Learn Java As My First Programming Language? by CodeTemplar: 10:31pm On Jun 07, 2018 |
ClassicMcGee:So which lang did u finally settle for? Python? Java?, c++? Or you just experimenting? |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 10:36pm On Jun 07, 2018 |
ibkayee: in school? In awe of you, there's this believe that you'll never be taught practically how to program. That leaves me wondering which school you attended? Maybe CU) |
Re: Is It Advisable To Learn Java As My First Programming Language? by ibkayee(f): 10:43pm On Jun 07, 2018 |
ClassicMcGee: while (classicMcGee asks ibkaye for guidance): print 'ibkayee will always be happy to try' if not, she will stop |
Re: Is It Advisable To Learn Java As My First Programming Language? by ibkayee(f): 10:45pm On Jun 07, 2018 |
ClassicMcGee:I think it just depends on how much time, effort and practice you put into it tbh, as long as the resources are there, no matter where you learn. I didn't attend school in Nigeria |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 10:50pm On Jun 07, 2018 |
CodeTemplar: i now have some really impressive JAVA tutors, CodeTemplar, ibkayee , pcguru1, wane01. Class Final_Decision{ Public static void main(strings[] args) { system.out.print/n("i stick with JAVA" } } 2 Likes |
Re: Is It Advisable To Learn Java As My First Programming Language? by CodeTemplar: 10:56pm On Jun 07, 2018 |
ClassicMcGee:which sch are u targetting for admin or attending? |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 10:58pm On Jun 07, 2018 |
ibkayee: Thanks, can you recommend some amazing resources that could speed up my learning, and write clean codes like you do? |
Re: Is It Advisable To Learn Java As My First Programming Language? by ibkayee(f): 11:03pm On Jun 07, 2018 |
ClassicMcGee:Udemy HackerRank CodeAcademy Treehouse If you have questions, search https://stackoverflow.com |
Re: Is It Advisable To Learn Java As My First Programming Language? by Thegamingorca(m): 11:05pm On Jun 07, 2018 |
ibkayee: you are turning me on...you sexy geek. |
Re: Is It Advisable To Learn Java As My First Programming Language? by ibkayee(f): 11:06pm On Jun 07, 2018 |
Thegamingorca:Lol mtchew |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 11:07pm On Jun 07, 2018 |
CodeTemplar: FUTA... |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 11:13pm On Jun 07, 2018 |
Thegamingorca:maybe you should code your message in JAVA, so ibkayee can understand. lemme be going before he pounce on me. 1 Like |
Re: Is It Advisable To Learn Java As My First Programming Language? by ClassicMcGee(m): 11:17pm On Jun 07, 2018 |
ibkayee:Do you code in JAVA alone? Read somewhere that you built your dad a website. |
(1) (2) (3) (4) (5) (6) (7) (Reply)
Funny Source Code Comments / Microsoft To Retire Internet Explorer: Will You Miss It? / Programming Investment- Stutern
(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. 66 |