Nnasino's Posts
Nairaland Forum › Nnasino's Profile › Nnasino's Posts
1 2 3 4 5 6 7 8 9 10 (of 15 pages)
Does it come with a hdmi cable? The games you listed are they real games or are they stored on the console? Awaiting your reply |
nice thread |
Wow, nice one. All the best! |
Hi, please i need ps3 mortal kombat 9 normal or komplete edition |
Thanks boss, but i have a ps3 and i'm no longer a fan of microsoft consoles. But you can pm me the price and specs and i'll see if i have anyone who is interested. |
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. |
there is no such thing as a weak two one or a strong two one. All that is important is that you are a second class upper graduate. My brother graduated with 3.5 on the dot and he's doing very well in a bank. He has already been promoted twice so most importantly just get the two one and forget about the GPA. |
is the console still up for sale? i'm interested |
Yeah, ofcourse the scope of san andreas is almost 3 times that of vice city. I finished it but it's been a while. If you're playing on pc i suggest that you purchase a good game pad maybe an xbox 360 pad. I think it will make things much easier for you especially when you have to fly planes and all that stuff. Honestly, You're just starting, your still in los santos? I finished San andreas and vice city years on the xbox. Use your right analog stick for the cesar mission. I think it's the mission where you compete with other hydraulic drivers by matching the right analog with the directions that come up on the screen. Good luck |
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 quotespsvm -- 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 |
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. |
tonididdy:hahahahahahahaha lmao |
Best thread ever. ![]() |
wow, beautiful rodent and funny comments. |
Chrisbenogor:lwkmd |
sampark201:sorry, I don't. |
uyigideon:I don't understand your question. but I don't think you need Java to build phone gap applications. |
gememerald:you download d library separately |
gememerald:you canuse the JOGL wrapper/binder |
romkey:wow, thanks man, appreciate that. |
DonaldGenes:... |
WINDSOW:. 1. Most of the time programs are related to a gui, either a native gui or web ui. In this tutorial, we will get to the gui part and make this a full application but you can't understand guis without understanding classes, objects, loops and the rest. 2. It depends on what your company does. Like for example we use the play framework(java and scala) to build enterprise web and mobile applications for financial institutions. We decided to make it a SaaS (software as a service) application. In conclusion, do not underestimate the relevance of command. Line applications. For anything, it is useful for logging and unit testing. |
asalimpo:Like this right, Character.toUpperCase(gradeLetter); Yes, you're right but I haven't taught how to use the java standard library and i am still explaining classes and objects so i don't think we have learnt enough to use that at this point. |
Hi everyone, a good day to you all. Sorry i've been quite busy. We will continue the tutorial today with more on objects and classes. We will improve on our program by using the concepts we have learned so properly. We learnt about classes and objects last time but today we will use them in our current program. I will also introduce the concept of an array today. Looking at our program closely we will need about three classes to properly organize the program: A Student class, a Semester and a Course class. The student class will contain information such as the name of the student the number of years the student wants to calculate, the CGPA of the student and the semesters of the student. The semester class will contain courses (yes, objects can contain other objects), the TNU (total number of units offered), TGP (total grade point) and the GPA of the semester. With these three classes we can restructure our program better. But first, let us introduce the concept of the array. An array is simply a collection of variables. Yes, that simple it is simply a collection of variables. For example, in our program, each semester has a collection of courses. So we say each semester has an array of courses. Note: there are many other ways of organizing collections of data but we use the array as it is simple and basic. Array syntax: to declare an array we write:
Now, to initialize an array is a bit different. We use the new keyword and square brackets as follows:
For example, to create an array of Courses that will contain 10 courses:
After creating the array, we can access its elements by using the [] brackets. EAch element has an index. An array that is of size 10 has indices from 0 to 9. Counting in computers starts from zero so it will end at nine (Notice: nairaland pages start from zero ). So to access the first element we use courseList[0]. To access the 10th character we use courseList[9]. If you try to access an element that doesn't exist for instance courseList[10]an exception will be thrown. Finally, to know the size of an array we can get that from the array as follows: arrayname.length; With this info, we can write out the design of our program:
In this our project, we will be creating this app like a real life app using packages. Open up your netbeans ide. Click new project and select java application: https://www.numericalmethod.com/trac/numericalmethod/raw-attachment/wiki/SuanShu/Tutorial/SetupGuide/netbeans_project_name.png Make sure create main class is ticked. Name your project GPA app and finish. Create three classes Course.java, Semester.java and Student.java. While creating these classes set their package to core. Now, in each file, create the variables for each class. Remember to keep all of them private. Now, netbeans can help us with the getter and setter methods as well as constructors. Press the shortcut key alt-shift-s (or right click within the editor and click insert code), select getter and setter, then select all your variables and click generate. Do this for all the files. Press the shortcut key alt-shift-s and click constructor, then select the following for the classes as follows:
After clicking the generate button, we will edit the constructors and some of the setters to our own taste. We edit the Student constructor as follows:
We edit the Semester constructor as follows:
Now, create getters and setters for all the variables in the Course class. For the getters and setters: We edit the setter setGradeLetter(char gradeLetter) as follows:
We edit the setter for credit load as follows:
|
Bold 5 and tecno m7. Bold 5: pros Cheap internet service cons: sometimes it hangs and switches off |
Tales by moonlight ![]() |
Mattex001:Many people haven't gotten theirs. My colleague who ordered a few minutes after i ordered mine still hasn't gotten his. So i just feel i was lucky to have gotten mine on monday. |
Truman155:The tab is very good i got mine last monday, check the previous page. The tab is excellent considering the price it was bought for. Good front camera, good battery and everything. I thank God for making me lucky enough to get mine. |
talk2chichi:Well, i use oracle 11g but it's just basic stuff, no pl/sql. |
ugonna1054:On friday |
nnasino:Well, well done konga!!. My tablet arrived today in perfect condition and i can attest that konga's yakata promotion was real. Before the promo it was 21k and on the promo it was 10k. Its now 26k and out of stock. So glad I ordered imagine this tab for 10k. http:///spark-sp-c002-quad-core-3g-wifi-16gb-hdd-8-inch-tablet-blue-1071409
|
;
lmao
