₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,183 members, 8,420,679 topics. Date: Friday, 05 June 2026 at 08:50 AM

Toggle theme

Hardebayho's Posts

Nairaland ForumHardebayho's ProfileHardebayho's Posts

1 2 3 4 5 6 7 8 9 10 (of 12 pages)

ProgrammingRe: What Is The Difference Between A URL, URI And A SLUG by hardebayho(m): 5:32pm On Aug 05, 2016
dhtml18:
Say what? I am only a TROLL, and an OBSOLETE TROLL at that!
Thank God you know...
ProgrammingRe: Voting Is Here Again Boys, Follow The Instructions Below To Cast Your Vote by hardebayho(m): 7:46am On Aug 02, 2016
Easy bro...


But sorry, I hate listening to instructions. I make them.
wink
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 9:41pm On Jul 11, 2016
samyomz:
jdk is java development kit righthuh And it's used to develop apps right??... I don't have jdk but i have android studio.. My question is... Can i use android studio to learn here or should i go and get jdk?? Tnx
Okay. You need to download the jdk.
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 12:56pm On Jul 11, 2016
samyomz:
@ fulaman.. Can i use android studio as an alternative to jdk. I'm new here
Alternative to jdk? Please make your question clear ooo
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 10:08pm On Jul 10, 2016
Collinz2:
Java easy challenge

write a multiplication time table program that accept user input, the inputed value will be for the time table. Time table should be from 1 to 12. Use for loop.

example
5 times 1 is 5
5 times 2 is 10
5 times 3 is 15

just like that.
import java.util.*;

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

Scanner input = new Scanner(System.in);

System.out.println("Please enter a number:"wink;
int x = input.nextInt();

for(int a = 1; a <= 12; a++){

System.out.println(x + " x " + a + " = " + x * a);
}

}
}
SportsRe: Never Give Up! Read Argentine Teacher Inspirational Letter To Messi- Goal.com by hardebayho(m): 8:43am On Jun 29, 2016
LesbianBoy:
Nonsense!

God bless Cr7

#IstandwithCr7

cool cool cool cool cool cool
Bro, I swear, you are the dumbest guy I've ever seen in my life
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 3:42am On Jun 28, 2016
Collinz2:
nobody can teach complete java except the basics, i beleive thoes advanced developers learn the basics and start programming for the rest of their life which made them know java like abc.
I never said anyone could teach you complete Java. All I said was for u to take your time.
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 7:40pm On Jun 25, 2016
To learn COMPLETE Java, you'll have to use up to a year or more with full dedication and seriousness. Although, if you're alerady a developer, then it'll take you less
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 3:52pm On Jun 17, 2016
Collinz2:
nope but i will.
Wanna find out which one is the best IDE? Download intellij, then you'll know what's called best
EducationRe: Nov/dec WASSCE by hardebayho(m): 3:45pm On Jun 17, 2016
IsraelMonday:
Hello, Please Who Knows The Opening And Closing Dates For Nov/Dec WASSCE/NECO Examinations..? Your Contribution Is Highly Appreciated ..
The closing date of GCE is July 20
RomanceRe: Cute Things To Call Your Girlfriend by hardebayho(m): 9:41pm On Jun 16, 2016
Blood of Zakaraya!!! Op, are you this dumb?
RomanceRe: Who Is Your Nairaland Crush....come In... by hardebayho(m): 8:02pm On Jun 14, 2016
HateU2:
yeas
Wia?
RomanceRe: Who Is Your Nairaland Crush....come In... by hardebayho(m): 7:39pm On Jun 14, 2016
HateU2:
Mercy
I'm Adebayo. You stay in lag, right?
RomanceRe: Who Is Your Nairaland Crush....come In... by hardebayho(m): 5:29pm On Jun 14, 2016
HateU2:
lol
I don't troll biko.
I just catch fun
Hmm... You got a name?
RomanceRe: Who Is Your Nairaland Crush....come In... by hardebayho(m): 5:14pm On Jun 14, 2016
HateU2:
cheesy cheesy
My head is swelling
I no know why I just like you. Even though all you do is troll around the romance section.
RomanceRe: Who Is Your Nairaland Crush....come In... by hardebayho(m): 4:49pm On Jun 14, 2016
Crush?? E go be dat HateU2 girl.
RomanceRe: Guys Its High Time You Stopped Making Bad Generalization About Women. by hardebayho(m): 5:41pm On Jun 13, 2016
HateU2:
Not only broken self but crashed to pieces. All the 'Gbosas' in d world 4 d girl dat broke his heart. May God bless her 4 me. She did a very good work.
You eh?
RomanceRe: Story Time! by hardebayho(m): 5:30pm On Jun 13, 2016
Twaci:
Story I don't understand. sad
Must u understand?
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 1:50pm On Jun 12, 2016
Collinz2:
Thats great. I kinda understand it but when i compile the code i got exception error so i skip it and when i get to exception i will return to it.

One more thing, just like what pachman is asking. For instance using the indexOf to check for @ in an email, i wrote the code and add user input scanner and the if statement. If the user enter an email without the @ it wil return invalid email as i instructed java to do, so How do i tell java to tell the user to keep inputing the email until he got it correct.
You use a while loop
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 2:30am On Jun 12, 2016
Collinz2:
am not following the lessons here though, but multi-dimensional array is giving me headache.
Yeah bro, I feel your pain. I remember when I was also learning arrays and arraylists. Na that multidimensional array wan kill me...

But remember, when you're creating a multidimensional array, you're basically saying:

Create -rows and -columns. Like this:

int[][] x = new int[4] [3];

This statement will create an array of 4 rows and 3 columns.

So if you want to like assign a value to the first row and third column, you say x[0] [3] = 25; This will assign the value 25 to the first row and third column.

If you're also confused about rows and columns, check this out:

I checked for the meaning of row in my dictionary and dis is what I got:

A line of entries in a table, etc., going from left to right, as opposed to a column going from top to bottom

So if I have some numbers like this,

0 1 2 3 4 5 6 7 8 9

What row and column is 7? Basically, we have just one row in this block. So to represent this in Java, we write num[0][8] which is equivalent to 7.

I hope u understand sha.
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 10:57pm On Jun 11, 2016
Fulaman198:
Guys one of my friends used Java as a means to parse some live data from the world bank site about forestation around the world. The data was parsed from a CSV file and put out in the form of an applet using the UnfoldingMaps API/library to illustrate the data in the csv file. I just wanted to show this to you to keep you motivated about some of the things you can do in Java.
Thanks bro
ProgrammingRe: Someone Should Help Me Solve This C++ Question Please by hardebayho(m): 9:53pm On Jun 10, 2016
Mizblinks:
Thanks a bunch, I will digest this later...
You welcome
ProgrammingRe: Someone Should Help Me Solve This C++ Question Please by hardebayho(m): 5:44pm On Jun 10, 2016
olarid01:
Well done bro. But this won't take care of the two years and also it can be generalized so that the number of courses in each year will be requested at program start.

Take a look a this:




#include <stdafx.h>
#include <iostream>
using namespace std;

int main() {
char pause;
//Number of courses per year
int yone, ytwo;

const int NoOfStudents = 2;
cout << "\nHow Many Courses in Year One? " << "\t";
cin >> yone ;
cout << "\nHow Many Courses in Year Two? " << "\t";
cin >> ytwo ;


//Creating the student data structure
struct Genstudent{
float *Yearone;
float *Yeartwo;
};

//Creating Array of students for the number of students
Genstudent student[NoOfStudents];

//Initializing the students variables
for(int x = 0; x < NoOfStudents; x++){
student[x].Yearone = new float[yone];
student[x].Yeartwo = new float[ytwo];
}

//Getting All the Scores
for(int x = 0; x < NoOfStudents; x++){
//getting the scores For Year One for all students
cout<<"Student "<<x+1<<"\n";
cout<<"========="<<"\n";
for (int i=0; i<yone; i++){
cout<<"\n\tStudent"<<x+1<<": Input Score For Year 1 Course: "<<i+1<< "\t";
cin>>student[x].Yearone[i];
}
//getting the scores For Year two for all students
for (int i=0; i<ytwo; i++){
cout<<"\n\tStudent"<<x+1<<": Input Score For Year 2 Course: "<<i+1<< "\t";
cin>>student[x].Yeartwo[i];
}

}


//Printing All the Scores

// For Year ONE
cout << "\n\n\t\t The Scores For Year One Are\n";
cout << "\t\t === ====== === ==== === ===\n";

cout<<"\t\t";
for (int i=0; i<yone; i++){
cout<<"Course "<<i+1<<"\t";
}
//putting a line break
cout<<"\n";

for(int x = 0; x < NoOfStudents; x++){
//getting the scores For Year One for all students
cout<<"Student"<<x+1<<": "<<" \t";
for (int i=0; i<yone; i++){
cout<<student[x].Yearone[i]<<"\t\t";
}
cout<<"\n";
}

// For Year TWO
cout << "\n\n\t\t The Scores For Year Two Are\n";
cout << "\t\t === ====== === ==== === ===\n";

cout<<"\t\t";
for (int i=0; i<ytwo; i++){
cout<<"Course "<<i+1<<"\t";
}
//putting a line break
cout<<"\n";

for(int x = 0; x < NoOfStudents; x++){
//getting the scores For Year One for all students
cout<<"Student"<<x+1<<": "<<" \t";
for (int i=0; i<ytwo; i++){
cout<<student[x].Yeartwo[i]<<"\t\t";
}
cout<<"\n";
}
//Deallocating All the used Array
for(int x = 0; x < NoOfStudents; x++){
delete [] student[x].Yearone;
delete [] student[x].Yeartwo;
}
cin>>pause;
return 0;
}
For one bruh, I don't know c++. Two, the information she provided is not really clear to me.

Nice code though. That should do it
ProgrammingRe: Someone Should Help Me Solve This C++ Question Please by hardebayho(m): 2:09am On Jun 10, 2016
Mizblinks:
It's not that I want you to run the program, I want someone that can solve the question.

e.g solving it this way.

1. # include <io stream>
2. using namespace std ;
3. main ()
4. {
5. int scores ;
6. cout << "enter 38 scores" "/a"
7. for ( int, =0; < 38; ++ >;
8. (in >>, scores [ i ]
9. cin >> scores ( 300L > "endl" ;
10. cout << " the enter scores are //" < endl ;
11. return o;
12. }

I know this is incorrect, but I want someone who can solve the question in this format.

#include <iostream>
using namespace std;

int main() {
int scores[38];

cout << "Enter 38 scores, and press enter after entering each score" << endl;

for(int x = 0; x < 38; x++){
cin >> scores[x] ;
cout << "The entered scores are: " << scores[x] << endl;
}
}


Tell me if this does what you need. If it doesn't, then I still need more info
ProgrammingRe: Someone Should Help Me Solve This C++ Question Please by hardebayho(m): 8:32pm On Jun 09, 2016
Mizblinks:
What information do you need please?
Are you getting the scores from the keyboard or you're inputting it in the program?
RomanceIf This Was You, What Would You Have Done? by hardebayho(op): 11:44am On Jun 09, 2016
I was browsing through YouTube and I saw this hilarious mark angel comedy video and I thought to share with you guys. Some of you have probably watched it already, buh I'll post the video link.


https://www.youtube.com/watch?v=8xRFZEc1-DY

For those who don't have data to watch the video, what the video contains is this:

Your girlfriend came to you to tell you that a guy slapped her. For one reason or the other, you followed her to the guy's place to fight. On getting there, you discovered that the guy that slapped your girlfriend is an army man.

My question here goes to the guys. If it was you, what would you do?.
RomanceRe: Minor Shiit! by hardebayho(m): 11:22am On Jun 09, 2016
ForeverYoung197:
I like to promise too but I love to break them. As long there's no written agreement you are free to do whatever you want.
Really? We are complete opposites of each other. I don't make a promise I can't or will not keep.
ProgrammingRe: Someone Should Help Me Solve This C++ Question Please by hardebayho(m): 9:04am On Jun 09, 2016
Not enough information
ProgrammingRe: Learning To Program With Java by the Fulaman by hardebayho(m): 9:31pm On Jun 06, 2016
Booyakasha:
I'll mention you guys in 30 minutes wink stay tuned..
Abeg, mention me too ooo
PhonesRe: If You Buy This N4.9million Solarin, God Will Not Forgive You (photo) by hardebayho(m): 3:28pm On Jun 03, 2016
njiasi30:
My dear, ur President or let me say dangote as one of d richest man..... Does he use a phone of 4.9m or is it dat he can't afford ithuh I always learn to spend wisely OK grin
Do u know the kind of phone dangote is using or how much he bought it? As for me, as long as I'm still sane, I can buy whatever I like. The cost doesn't always matter. All that matters is that I got what I want and it makes me happy
RomanceRe: I Beef With Nairaland Cheapest Slüts Hateu2 And Naughtynaughty by hardebayho(m): 3:16pm On Jun 03, 2016
juhan:
whats bimo
I think he meant to say Bimbo grin

1 2 3 4 5 6 7 8 9 10 (of 12 pages)