Nairaland Forum

Welcome, Guest: Join Nairaland / Login / Trending / Recent / New
Stats: 1258240 members, 1697344 topics. Date: Wednesday, 22 October 2014 at 01:17 PM

Java Tutorials For Beginners (some Lectures In Pidgin) - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Java Tutorials For Beginners (some Lectures In Pidgin) (1827 Views)

Programming Challenge For Beginners Competition Two N20000 -SEASON 2- / Programming Challenge For Beginners N20000 / Simple Programming Projects For Beginners (1) (2) (3) (4)

(0) (Reply) (Go Down)

Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 4:20am On Aug 28, 2010
[size=8pt][size=8pt]Hello people i see myself as a beginner i decided to share some stuffs i have learnt for some couple of months now
first of all i implore those interested to download an IDE.

WHAT IS AN IDE ? IDE is also know as Intergreted Development Environment its an editor where you write java code . you can compare writting a code in java to cooking rice some people might decide to cook rice with a pot some might decide to cook rice with electric cooker. but in Warri some people may decide to use frying pan or kettle to cook rice. the Ide is ur pot or frying pan to cook java codes . examples of java IDE includes bluej, jgrasp,eclipse, dr java, jcreator, netbeans,e.t.c . For this class i would use blueJ as my pot to cook java codes but you can use any of the IDE it doesnt matter as long as you get your code or your program working fine.
some of my lectures would be in Pidgin English
[/size][/size]
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 4:43am On Aug 28, 2010
LESSON 1 :
This lesson na about downloading your IDE . i go use Bluej as my reference

go this link wey dey down then download blue j
http://www.bluej.org/download/download.html

then install your downloaded file . for some system the stuff no go work if u no get java JDK if the thing ask you for jdk click the link below
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 4:51am On Aug 28, 2010
u should see get a picture like this without the Hello when u don install bluej finish and when u run bluej

Re: Java Tutorials For Beginners (some Lectures In Pidgin) by metodman(m): 8:46am On Aug 28, 2010
Thanks my Teacher, cant wait to learn
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 7:23am On Aug 30, 2010
Sorry it took a long time posting here anyway i don show
Today we go dey talk about some stuffs . oyibo man say a variable is a name for a memory location used to hold a value of a particular data type. even me i no know wetin i write lol this is funny. Variable declaration in programing tell the compiler say oboy reserve space or chance for me for main memory oh so that any value type indicates the name which we refer to that chance. example of variable declaration includes " int scores;, double num1;

make we yarn about class. Ok a class is a blue print of an object. this one na another oyibo again. When we build house we get a plan . a plan is like a class while the house is an object.

ok lets start programming

our fisrt programing na to print out a name




first in our program we would have a class, a constructor a string and a print method .

OK PEOPLE
make we write our first program. our first program na to print out PAPA EMEKA name.
again if ure using bluej go to project and create a new project name it PAPAEMEKA or any name u fill like naming it;

Step 1 create a class: u can do this in bluej by clicking on class


public class PapaEmeka

{
private String papaemeka;
public PapaEmeka ()
{
// papaemeka = (" "wink;
}
public static void main (String[]args)
{
System.out.println ("Wetin you want make i print:"wink;
System.out.println ("PAPA EMEKA"wink;
}
}
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 7:32am On Aug 30, 2010
just a reminder programing might sound very strange right now but i bet u keep looking at materials that way build up urself
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 7:50pm On Sep 01, 2010
I don show Again our next program would be using the Scanner class in java.

Scanner Class na Class for Java wey they allow User to read values in various types.

B4 u use scanner class u go first import am if not your program no go compile and your program no go work well or run.

You import class by writing , import java.util.Scanner;

  ok our program is called YouGetPassword

import java.util.Scanner;

public class YouGetPassword
{
    public static void main (String[]args)

    {
        Scanner scan = new Scanner (System.in);

        String wetinbethepassword;

        System.out.print ("Please Type Your Password"wink;
       
        wetinbethepassword = scan.nextLine();
       
        if (wetinbethepassword.equals ("donclemo"wink)

        {
            System.out.println ("O BOY THE PASSWORD CORRECT OH"wink;

        }
        else
        {
            System.out.println (" "wink;

            System.out.println (" Base on password u know now"wink;

            System.out.println ("Press Enter to terminate"wink;

            scan.nextLine ();
        }
    }
}
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by beebee2000(m): 1:27pm On Sep 09, 2010
hey donclem good work, but your teaching is too fast,

donclemo:

Sorry it took a long time posting here anyway i don show
Today we go dey talk about some stuffs . oyibo man say a variable is a name for a memory location used to hold a value of a particular data type. even me i no know wetin i write lol this is funny. Variable declaration in programing tell the compiler say oboy reserve space or chance for me for main memory oh so that any value type indicates the name which we refer to that chance. example of variable declaration includes " int scores;, double num1;

make we yarn about class. Ok a class is a blue print of an object. this one na another oyibo again. When we build house we get a plan . a plan is like a class while the house is an object.

ok lets start programming

our fisrt programing na to print out a name




first in our program we would have a class, a constructor a string and a print method .

OK PEOPLE
make we write our first program. our first program na to print out PAPA EMEKA name.
again if ure using bluej go to project and create a new project name it PAPAEMEKA or any name u fill like naming it;

Step 1 create a class: u can do this in bluej by clicking on class


public class PapaEmeka

{
private String papaemeka;
public PapaEmeka ()
{
// papaemeka = (" "wink;
}
public static void main (String[]args)
{
System.out.println ("Wetin you want make i print:"wink;
System.out.println ("PAPA EMEKA"wink;
}
}


you should have taught us what we dont know to what we need to know like writing a simple java program
welcome to java cos am lost from the look of things .wetin be system.out which kin command be this one ohhhh!!!!!!!
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by mbond(m): 9:50pm On Sep 10, 2010
Guy thank you very much,I beg start am from starting as in what java can do and those codes u pasted earlier pls explain their work to us.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 12:57am On Sep 13, 2010
sorry i been commot for a while i actually post that stuffs make i see una reaction so i know wetin i go begin talk i shall post my next lecture and i guess a link to a video where i dey program for java . Thanks for the question because i been think say i dey teach only myself
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by guru01: 8:05pm On Sep 13, 2010
Bros i like this ur teaching, but make us understand wel. U no say we be noob, teach us like pikin.
God bless u.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by Develop3r: 9:41pm On Sep 13, 2010
@donclemo, Great job bro, keep it up. Maybe during one of spare time i will write a comprehensive tutorial application for you guyz. 0ne love Naija.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by mbond(m): 7:29pm On Sep 14, 2010
Guy I think say u don forget wetin you start.Anyway,thank you 4 replying us.Guy I get plenty Java Programming eBOOKS, but when I dey read I no dey understand am well.I get plenty IDE, like BlueJ.E good as u dey even use pidgin dey teach us.More grace 2 ur elbow.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 6:13am On Sep 15, 2010
guys how una dey i hope say una enjoy d sallah for the christian i hope say una muslim neighours give una big meat sorry say i never come here since i been get some stuffs to take care anyway i don show oh. I don decide to start from the beginning so that every body go understand.

i go try explain some terms for programing language;
i don talk about software development environment before una remember when i talk about integrated development environment (IDE) i say na the tool wey we dey use take create, test and modify your program or na the pot wey we go use take boil , cook or fry our food. I just dey try refresh our brain.
Today i go talk about Syntax .Every programing language get him language or syntax thats why dem call am programing language. java get him own language C++ or Visual basic get their own php get their own. so if Chinese man show your area e begin speak Chinese 你怎么做。我很高兴收到你的来信 every body go say guy guy abeg speak wetin we go hear na so java be . if you dey write your program u no speak him language e go say guy i know understand wetin u dey talk oh . na that one dem dey call compile-time error. if u hear anybody say guy that my program no compile e mean say e no speak language finish for the compiler. the compiler shout say guy i no understand oh.

make i talk about compiler small compiler na program wey dey translate code for one language to another another. e fit be translation from java (high level language ) to machine language. For some church for warri if pastor dey preach and pastor say Jesus walked the person wey they translate go say jesus waka that guy na the compiler if pastor come speak hausa the guy go say pastor i no understand wetin you dey yarn oh. the error wey the compiler identify na him dem dey call compile-time error.And the original code na him dem dey call source code and the language wey dem tranlate the code to na him dem dey call target language.

the second type of error for programing na run time error . this kind of error they cause program to stop abnornomaly for example if u divide any number by zero(0) the thing go say error.

the third type of error is called logical error this type of error the program go compile without problem but e no go give u the result wey u want. for example if you write program wey go open your door if you run the program and the program dey close the door instead the error wey u get na logical error so u get to check the program again and correct your mistake . the process of correcting you mistake na him dem dey call debugging.

More lecture coming soon feel free to send in your comments and questions.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 3:25am On Sep 16, 2010
guys how una dey i hope say una enjoy d sallah for the christian i hope say una muslim neighours give una big meat sorry say i never come here since i been get some stuffs to take care anyway i don show oh. I don decide to start from the beginning so that every body go understand.

i go try explain some terms for programing language;
i don talk about software development environment before una remember when i talk about integrated development environment (IDE) i say na the tool wey we dey use take create, test and modify your program or na the pot wey we go use take boil , cook or fry our food. I just dey try refresh our brain.
Today i go talk about Syntax .Every programing language get him language or syntax thats why dem call am programing language. java get him own language C++ or Visual basic get their own php get their own. so if Chinese man show your area e begin speak Chinese 你怎么做。我很高兴收到你的来信 every body go say guy guy abeg speak wetin we go hear na so java be . if you dey write your program u no speak him language e go say guy i know understand wetin u dey talk oh . na that one dem dey call compile-time error. if u hear anybody say guy that my program no compile e mean say e no speak language finish for the compiler. the compiler shout say guy i no understand oh.

make i talk about compiler small compiler na program wey dey translate code for one language to another another. e fit be translation from java (high level language ) to machine language. For some church for warri if pastor dey preach and pastor say Jesus walked the person wey they translate go say jesus waka that guy na the compiler if pastor come speak hausa the guy go say pastor i no understand wetin you dey yarn oh. the error wey the compiler identify na him dem dey call compile-time error.And the original code na him dem dey call source code and the language wey dem tranlate the code to na him dem dey call target language.

the second type of error for programing na run time error . this kind of error they cause program to stop abnornomaly for example if u divide any number by zero(0) the thing go say error.

the third type of error is called logical error this type of error the program go compile without problem but e no go give u the result wey u want. for example if you write program wey go open your door if you run the program and the program dey close the door instead the error wey u get na logical error so u get to check the program again and correct your mistake . the process of correcting you mistake na him dem dey call debugging.

More lecture coming soon feel free to send in your comments and questions.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 5:15am On Sep 17, 2010
guys how una dey i hope say una enjoy d sallah for the christian i hope say una muslim neighours give una big meat sorry say i never come here since i been get some stuffs to take care anyway i don show oh. I don decide to start from the beginning so that every body go understand.

i go try explain some terms for programing language;
i don talk about software development environment before una remember when i talk about integrated development environment (IDE) i say na the tool wey we dey use take create, test and modify your program or na the pot wey we go use take boil , cook or fry our food. I just dey try refresh our brain.
Today i go talk about Syntax .Every programing language get him language or syntax thats why dem call am programing language. java get him own language C++ or Visual basic get their own php get their own. so if Chinese man show your area e begin speak Chinese 你怎么做。我很高兴收到你的来信 every body go say guy guy abeg speak wetin we go hear na so java be . if you dey write your program u no speak him language e go say guy i know understand wetin u dey talk oh . na that one dem dey call compile-time error. if u hear anybody say guy that my program no compile e mean say e no speak language finish for the compiler. the compiler shout say guy i no understand oh.

make i talk about compiler small compiler na program wey dey translate code for one language to another another. e fit be translation from java (high level language ) to machine language. For some church for warri if pastor dey preach and pastor say Jesus walked the person wey they translate go say jesus waka that guy na the compiler if pastor come speak hausa the guy go say pastor i no understand wetin you dey yarn oh. the error wey the compiler identify na him dem dey call compile-time error.And the original code na him dem dey call source code and the language wey dem tranlate the code to na him dem dey call target language.

the second type of error for programing na run time error . this kind of error they cause program to stop abnornomaly for example if u divide any number by zero(0) the thing go say error.

the third type of error is called logical error this type of error the program go compile without problem but e no go give u the result wey u want. for example if you write program wey go open your door if you run the program and the program dey close the door instead the error wey u get na logical error so u get to check the program again and correct your mistake . the process of correcting you mistake na him dem dey call debugging.

More lecture coming soon feel free to send in your comments and questions.
Reply
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by Mobinga: 12:59pm On Sep 17, 2010
Ride on brother. .
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 8:20pm On Sep 17, 2010
for those that couldnt see my last message i will try and post them again but bit by bit so that spam catcher no catch am .
i go try explain some terms for programing language;
i don talk about software development environment before una remember when i talk about integrated development environment (IDE) i say na the tool wey we dey use take create, test and modify your program or na the pot wey we go use take boil , cook or fry our food. I just dey try refresh our brain.
Today i go talk about Syntax .Every programing language get him language or syntax thats why dem call am programing language. java get him own language C++ or Visual basic get their own php get their own. so if Chinese man show your area e begin speak Chinese 你怎么做。我很高兴收到你的来信 every body go say guy guy abeg speak wetin we go hear na so java be . if you dey write your program u no speak him language e go say guy i know understand wetin u dey talk oh . na that one dem dey call compile-time error. if u hear anybody say guy that my program no compile e mean say e no speak language finish for the compiler. the compiler shout say guy i no understand oh.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 8:23pm On Sep 17, 2010
for those that couldnt see my last message i will try and post them again but bit by bit so that spam catcher no catch am .
i go try explain some terms for programing language;
i don talk about software development environment before una remember when i talk about integrated development environment (IDE) i say na the tool wey we dey use take create, test and modify your program or na the pot wey we go use take boil , cook or fry our food. I just dey try refresh our brain.
Today i go talk about Syntax .Every programing language get him language or syntax thats why dem call am programing language. java get him own language C++ or Visual basic get their own php get their own. so if Chinese man show your area e begin speak Chinese " chin chan chi chun chun " every body go say guy guy abeg speak wetin we go hear na so java be . if you dey write your program u no speak him language e go say guy i know understand wetin u dey talk oh . na that one dem dey call compile-time error. if u hear anybody say guy that my program no compile e mean say e no speak language finish for the compiler. the compiler shout say guy i no understand oh.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 8:25pm On Sep 17, 2010
wink wink make i talk about compiler small compiler na program wey dey translate code for one language to another another. e fit be translation from java (high level language ) to machine language. For some church for warri if pastor dey preach and pastor say Jesus walked the person wey they translate go say jesus waka that guy na the compiler if pastor come speak hausa the guy go say pastor i no understand wetin you dey yarn oh. the error wey the compiler identify na him dem dey call compile-time error.And the original code na him dem dey call source code and the language wey dem tranlate the code to na him dem dey call target language.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 8:28pm On Sep 17, 2010
wink wink i go try explain some terms for programing language;
i don talk about software development environment before una remember when i talk about integrated development environment (IDE) i say na the tool wey we dey use take create, test and modify your program or na the pot wey we go use take boil , cook or fry our food. I just dey try refresh our brain.
Today i go talk about Syntax .Every programing language get him language or syntax thats why dem call am programing language. java get him own language C++ or Visual basic get their own php get their own. so if Chinese man show your area e begin speak Chinese " chun chun cha so go chun chun "[/b]every body go say guy guy abeg speak wetin we go hear na so java be . if you dey write your program u no speak him language e go say guy i know understand wetin u dey talk oh . na that one dem dey call[b] compile-time error. if u hear anybody say guy that my program no compile e mean say e no speak language finish for the compiler. the compiler shout say guy i no understand oh.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 6:19pm On Sep 18, 2010
sorry for the plenty message on 1 topic i wasnt seeing the post before i guess because of spam catcher i shall continue with the next lecture
The next thing wey i go dey yarn for java na Class. Oyibo man define class for java as an instance of an object or a blue print of an object. o boy this english big oh . b4 u build house we get wetin dem dey call plan of house an object na the house while the plan na d class. So class be like the plan of a house.
today i shall give u an intro on writting your code if maybe u wan write program for Mr Bigs your class go be MRbigs and all the methods of Mrbigs. we no go talk about method today but just to remind u of some of the method for MrBigg before you enter mr bigg 1 guy go halla u "bross welcome oh " as u reach where that babe dey for counter she go say what do you like to eat , you go say fried rice and chicken the babe go say na N650, she go ask u say o boy na take away or na here you wan chop am , if na take away she go put am for nylon , then u go pay, as you dey go the guy for door go open door for you and he go say bros anything for your boy. You fit right program like this for Mrbiggs and na machine go dey do all this stuffs.
Ok back to class u create the class by writting a public class and the name of the class then with an open curly bracket ({) and a closed curly bracket (}). within your curly bracket na him your methods and other stuffs go dey. i no say u never fully understand i go give u example
public class Mrbigg
{

}

or maybe nairaland be your class to create ur class e go be
public class Nairaland
{

}

just to check whether una dey follow me and how una go take create a class called Nigeria with nothing or no message inside . and how una go take create a class called NaijaPolice with nothing inside the class. Tyy and Post your response and for those of una wey get IDE create a class for ur IDe and see weather e compile those of una wey no get download one na free of charge . I shall post a video tutorial on this stuffs with blueJ IDE
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 3:22am On Sep 19, 2010
smiley wink just a link on how to create a class in bluej http://www.youtube.com/watch?v=TxYJlaXDfZw
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by Mobinga: 10:55am On Sep 19, 2010
smiley Next
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by ddon4(m): 2:12pm On Sep 20, 2010
i am a C# beginner the class is interesting. Ride on brother, waiting for your next class
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 4:55pm On Sep 20, 2010
make i quickly remind una about our last lecture ; i yarn about class so i go continue from where i stop ok i go talk about comments in java comments in java dis one na sentence or word wey u dey write to explain the program the thing wey u dey do for the program or author name . we can also call tthat documented . we use comment so that when person look our code e fit undertand wetin we dey do . and to comment a program u use this // and write your word or sentence in front . u fit write your comment for pigeon and the compiler no go shout as long as u use // for example
// this program wey i wan write so na for MRBIGGS oh 
public class MrBiggs
{

}


you can decide to do programming without commenting it doesnt affect your program but it is just a good way of writting your program. those days for secondary school i no dey write date but i still dey pass my class but now i don dey write date because in the next 2 years i fit look my note and pull out the date wey i write something.
In java we get wetin we dey call the main method - public static void main (string []args){
} without this main in your program u no go fit run the program to show u the result of wetin u dey program for example if u dey write program wey go print your name 10 times you go get to use the main method in your program. we go talk abot the print method this prints an out System.out.print() or System.out.println ().  A typical example of wetin i don talk  can look like this
// this program prints  where i dey 
public class MrBiggs
{
   public static void main (String[]args)
{
System.out.println (" i dey Mr biggs"wink;// this prints i dey Mr biggs
}
}

for questons and comments post dem up aso this a link to video tutorial[url=
http://www.youtube.com/watch?v=SQ8CpPxass8
]
http://www.youtube.com/watch?v=SQ8CpPxass8
[/url]
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by Nobody: 9:11pm On Sep 20, 2010
ha, this don make things easy o! formally b4 u can speak JAVA, u must learn to speak English first. i dey feel u jare. Carry oooooooooon.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by donclemo(m): 5:15am On Sep 27, 2010
oya i don show again sorry it took me a while to post . i go dey yarn about  varaible una remeber for maths those days for secondary school and primary school when teacher say variabl he mean x and y or any other letter so far its not a constant. for java variable is similar the only difference be say variable na location for memory wey  dey hold data value . if we wan travel by public transport we go call the name of the transport. for example if na Agofure transport we go say  o boy i dey enter wafi with aofure transport or with bigjoe transport or with ikenedilichukwu transport . in java when  we dey write program we no fit just talk say int = 5 or double = 4.0 (int na wetin java dey call integer double na wetin java dey call decimal ) we need a variable . instead of int = 5 we say int champion=5 or double z = 4. the process of given int a name by putting champion  in front of int or putting a z in front of double na him dem dey call variable declaration for java then the 5 wey u give champion  na the initial

java get wetin we dey call arithmetic operator. this operator na your normal arithmetic stuff + -  e.t.c   and they include :
= Simple assignment operator
+ Additive operator (also used for String concatenation)
- Subtraction operator
* Multiplication operator
/ Division operator
% Remainder operator

these  are also some other operator as the class dey progress we go dey use dem and i go explain dem more


+ Unary plus operator; indicates positive value (numbers are positive without this, however)
- Unary minus operator; negates an expression
++  Increment operator; increments a value by 1
--    Decrement operator; decrements a value by 1
!      Logical compliment operator; inverts the value of a boolean
== Equal to
!= Not equal to
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to

&& Conditional-AND
|| Conditional-OR
?:      Ternary (shorthand for if-then-else statement)


ok we try do some programing

// this program na to add two numbers together okpeto and champion
public class addition
{
    public static void main (String [] args)
{
      int okpetu = 20;
      int champion = 40;
      int total = okpetu + champion;
     System.out.println (total);
}
}




for question and comments post them up
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by chukxy: 8:59am On Sep 27, 2010
@donclemo , great job! More power to your elbow.
Re: Java Tutorials For Beginners (some Lectures In Pidgin) by Mobinga: 2:59pm On Oct 21, 2010
smiley

(0) (Reply)

I Want To Learn Php / I Need Different Expression In Ms Access / How To Mod Opera Mini And Other Softwares With Phone

(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: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

Nairaland - Copyright © 2005 - 2014 Oluwaseun Osewa. All rights reserved. See Nairalist and How To Advertise. 132
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.