₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,766 members, 8,446,980 topics. Date: Friday, 17 July 2026 at 01:32 PM

Toggle theme

Mgb4reel's Posts

Nairaland ForumMgb4reel's ProfileMgb4reel's Posts

1 2 3 4 5 (of 5 pages)

ProgrammingRe: Programing With Java by mgb4reel(m): 9:46pm On Aug 12, 2013
tanks.....
ProgrammingRe: Help With Java Installer by mgb4reel(m): 3:53pm On Aug 12, 2013
javadoctor: From ur subject,the jar2exe compiler doesn't make ur program install in ur registry. It makes ur program run as a standalone file using window c++ runtime library. It doesn't install,so there's no point converting to an exe file. If u want to build an installable program use netbeans 7 platform,this enables u to build ur apps for mac,linux,or windows installable. Another gud tool is this http://www.advancedinstaller.com/java.html it builds ur jar application to an msi format installable for only windows,integrates ur application into d registry and as part of ur installed programs. Cheers
hi...pls can u xplain aw i can build an installable program using netbeans...an also how can i record with netbeans because i want to make some video tutorials. Thanks
ProgrammingRe: Programing With Java by mgb4reel(m): 10:32am On Aug 11, 2013
[quote author=Known_pal]^^^ sure it does. Now whats the difference between public Employee{int val){//this is a constructor?}
and
pubic static int max(int num1, int num2) {//this is a method right?}[/quote]haha...this is a very trivial question...cant u see dat d constructor dos not specify a return type and it has d class name...or are u tryin to ask me how this methods are called? If yes, they ar indeed called diferently..whenever u create an object of this Employee class, you are automaticaly calling the constructor of the Employee class...i.e
Employee obj = new Employee(15); // this object i av created wil cal d Employee constructor..note dat d argument i passed during the object creation matches with the parameter specify in the Employee constructor.
Hope u undastand?
Now, to cal a method in class Employee you wil call it on an Employee object...like say
obj.calculate(); where calculate is a non static method in class Employee...but in the example u gave, u av a static method called max there...to cal a static method,u dont need to create an object of the class to call it...just cal it on the class name...as in Employee.max(15,17); since ur static method max specify two int parameters.
I hope u ar clear now? Stil confused? Ask more!!
ProgrammingRe: Programing With Java by mgb4reel(m): 10:25am On Aug 10, 2013
[quote author=Known_pal]Whats the difference between a constructor and a method #with examples please.[/quote]A method is a unit of a class that perform a specific function or say task in a class. A constructor is also a method that is used to initialize instance variables of a class durin instantiation. A constructor name is exactly d same as dat of d class....an most importantly dos nt av a return type(not even void)
for example,
public class Employee{
private int value;
public Employee(int val){ // the constructor havin d clas name an does nt specify a return type
value = val; // initializin d instance variable
}
public int calculate(){ // a method whose return type is int
return value * value;
}
}
hope this help
ProgrammingRe: Programing With Java by mgb4reel(m): 7:38pm On Aug 08, 2013
u are welcome know_pal..u can get the compiler by goin to oracle website...u get the java development kit(jdk) and netbeans...instal an enjoy...hav any prob? U can always ask! Together,we can take programing in nigeria from it is to where its ought to be!
ProgrammingRe: Programing With Java by mgb4reel(m): 1:19pm On Aug 08, 2013
P
danvery2k6:


/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nairaland

/**
*
* @author HP USER
*/
public class Main {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Employee employee = new Employee("John", "Doe", 500);
System.out.printf("Monthly salary before raise is: N%.2f\n", employee.getMonthlySalary());
System.out.printf("Monthly salary after %s raise is N%.2f\n","10%",employee.raise() );
}
}

sincerely,u av done a very good job...nice one bro..kudos to u.the program wil compile and run quite alright but the program may not give the required output as the question demands..firstly we ar asked to create two objects of employee..it would av been nice if u can invoke getFirstName() and getLastName() methods so that the output wil also include the names of the salary owners.....but i realy like ur code bro cos u not only adhere to java naming conventions but u also follow oop concept by encapsulatin dose fields..kudos to u bro...Together, we wil take programing from where it is to where its ought to be!
ProgrammingRe: Programing With Java by mgb4reel(m):
[quote author=Known_pal]import java.io.*;
public class Employee{String firstName, lastName; double monthlySalary;
public Employee(String welc){System.out.println(welc);}
public setFirstName(String fName){firstName=fName}
public getFirstName(){System.out.println(firstName); return firstName;}
public setLastName(String lName){ lastName=lName}
public getLastName(){ System.out.print(" "+lastName); return lastName;}
public void setmonthlySalary(double salary){ monthlySalary=salary} public void double getmonthlySalary()[/quote]hmmm...kudos to u but am quite sure this program wil not even compile to bytecode,not to talk of running..this is because there are a lots of erors in the code you av writen..let me start from the method getmonthlySalary() declaration..u not only violate java method namin convention but u also use two return types for a method which is neva alowed..some of the method u declared abov do not even av a return type..note that al method delaration in java must av a return type except the constructor.there ar many oda eror dat i cannot mention here but my aim of doin this is just to let u kno so as to avoid such mistake in the future...together we can take programin 4rm where it is to where its ought to be...Kudos to u al
ProgrammingRe: Programing With Java by mgb4reel(m):
emmanwandud: Import.java.util
Public static void main(string args)(
Inbox me to get the rest
oga...no class declaration now...and again, the solution wil av two java files..one of the java file wil hav the employe class declation that wil include the data members as wel as the set and get methods while the other java file wil hav the main method wherein you instantiate the class with the argument to match the employee constructor parameters
EducationRe: Online tutorial in Physics, Chemistry, Maths for Jamb and pume by mgb4reel(m): 11:03am On Aug 07, 2013
ANDREW2EIC: Attempt this:

A body of mass 4kg resting on a smooth horizontal plane is simultaneously acted upon by two perpendicular forces 6N and 8N. Calculate the acceleration of the motion
since the two forces are acting perpendicularly, then the resultant of the two forces will be 10N(from pythagoras theorem)
then the accceleration from newton's law of motion is a = f/m = 10/4 =2.5 meter per second square.
EducationRe: Online tutorial in Physics, Chemistry, Maths for Jamb and pume by mgb4reel(m): 10:52am On Aug 07, 2013
buzyguy: The collision between molecules of a Gas is perfectly elastic:wotz the implication?
its one of the kinetic theory of an ideal gas and it implies that no kinetic energy is lost when the molecules collide. even when they collide with the wall of the container they rebound and no energy is lost.
EducationRe: 2013/2014 Obafemi Awolowo University ::ASPIRANTS:: by mgb4reel(m): 10:33am On Aug 07, 2013
please what are the o'level requirement for computer engineering in oau?
EducationRe: 2013/2014 Obafemi Awolowo University ::ASPIRANTS:: by mgb4reel(m): 10:30am On Aug 07, 2013
please waht is the cut off mark for computer engineering in oau?...does the course require a credit pass in further mathematics?
EducationRe: 2013/2014 Obafemi Awolowo University ::ASPIRANTS:: by mgb4reel(m): 10:08am On Aug 07, 2013
hackex: Find dis helpful last yr cut off mark

reported cut-off marks in full:
applied geophysics 200,
physics 200,
statistics 200,
geography 224,
demography/statistics 225,
Political science 255,
botany 200,
Elect/Elect 236,
Medicine 262,
Economics 253,
Dentistry 250,
computer/mathematics 232,
Computer/economics 245,
food engineering. 200,
Food Science and Technology 200,
material sc. 200,
mechanical engineering. 235,
building 207,
Nursing 240,
medical rehab 238,
agricultural engineering. 200,
chemical engineering. 236,
chemistry 200,
civil engineering 233,
architecture 222,
Urban&Reg Plan.210,
Biochemistry 223,
engineering physics200,
geology 200,
industrial chem 200,
mathematics 200,
microbiology 230,
philosophy 252,
psychology 233,
sociology 245,
law 273,
pharmacy 235,
estate management. 217,
fine art 237,
zoology 200,
accounting 248,
inter relations. 237,
public admin 243,
local government studies 200
hi bro, i cant find the cutt-off mark for computer engineering in here...kindly help pls
EducationRe: 2013/2014 Obafemi Awolowo University ::ASPIRANTS:: by mgb4reel(m): 10:00pm On Aug 05, 2013
[quote author=#me@]we dont even know which one u are doing, wether aspirant o or staylite o, hmm hmm. Clear our doubt, mbaaa, u refused, isssoraaii..[/quote]hmmm..not yet a jambyte. Preparing to write jamb next year but wish to get all the possible info...please do tell me about computer engineering in oau. The cutt off and the rest of them.tanks bro
EducationRe: 2013/2014 Obafemi Awolowo University ::ASPIRANTS:: by mgb4reel(m): 1:46pm On Aug 04, 2013
yemmy1: Yes, there is no pure computer science. That is why computer science student do all Engineering courses too in OAU.
thanks for the response bro. Will be writing jamb next year and hope to choose computer engineering in oau as my first choice...what is the most recent cut off mark for the course and how is the course over there in terms of lecturers and laboratory equipment? Thanks for being there bro
EducationRe: 2013/2014 Obafemi Awolowo University ::ASPIRANTS:: by mgb4reel(m): 1:45pm On Aug 04, 2013
yemmy1: Yes, there is no pure computer science. That is why computer science student do all Engineering courses too in OAU.
thanks for the response bro. Will be writing jamb next and hope to choose computer engineering in oau as my first choice...what is the most recent cut off mark for the course and how is the course over there in terms of lecturers and laboratory equipment? Thanks for being there bro
EducationRe: 2013/2014 Obafemi Awolowo University ::ASPIRANTS:: by mgb4reel(m): 11:41am On Aug 04, 2013
yemmy1: There are 3 departments in 1
1. Computer Engineering
2. Computer Science with Maths
3. Computer Science with Econs
But all are under the Faculty of Technology. What is you Jamb and PostJamb scores?
so the department does not offer 'pure' computer science?
EducationRe: 2013/2014 Obafemi Awolowo University ::ASPIRANTS:: by mgb4reel(m): 11:38am On Aug 04, 2013
[quote author=a.r.okans]Actually u are correct except for the first option. It is computer Engineering. The name of the department is Department of Computer Science and Engineering. im a final year student in the department. wish u guys all the best. However do not waste ur leisure.[/quote]hello bro, there is something i really need to get. does the department offer a course like computer science and engineering? if am to apply in jamb, what do i choose? i wanna write jamb next year and would like to study computer science and engineering as a combined degree programme. is this possible? can u please shed more light on what the department of computer science and engineering is about? thanks for your kind response
EducationRe: 2013/2014 Obafemi Awolowo University ::ASPIRANTS:: by mgb4reel(m): 9:43am On Aug 04, 2013
hi everyone, am ahmed olawale by name...a oau aspirant for the 2014/2015 session. Sound too early? I believe early preparation is the sure way to success. Please how does oau offer computer science course? Is it computer science alone or computer science and engineering? Your responce will be of utmost importance to my life.
EducationRe: Unn Admission Status 2010/2011 Is Out, Check Yours Now: by mgb4reel(m): 3:29pm On Aug 27, 2010
pls i want u people to help with ur post ooo.i just check my admission status and told that i have been offered admission.but i use a pass in english when applying because i saw it in the bronchure that a pass is accepted.pls i hop there is no problem with my admission.pls u can always mail me at mgb4reel@gmail.com or call my phone number at any time 07033699653;midnight calls allowed.thanks and God bless u allllllllllllllll!!!!!!!!!!!!!!!!!!!!!

1 2 3 4 5 (of 5 pages)