Mgb4reel's Posts
Nairaland Forum › Mgb4reel's Profile › Mgb4reel's Posts
tanks..... |
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. Cheershi...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 |
[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!! |
[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 |
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! |
P danvery2k6: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! |
[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 |
emmanwandud: Import.java.utiloga...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 |
ANDREW2EIC: Attempt this: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. |
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. |
please what are the o'level requirement for computer engineering in oau? |
please waht is the cut off mark for computer engineering in oau?...does the course require a credit pass in further mathematics? |
hackex: Find dis helpful last yr cut off markhi bro, i cant find the cutt-off mark for computer engineering in here...kindly help pls |
[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 |
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 |
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 |
yemmy1: There are 3 departments in 1so the department does not offer 'pure' computer science? |
[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 |
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. |
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!!!!!!!!!!!!!!!!!!!!! |