₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,296 members, 8,421,211 topics. Date: Saturday, 06 June 2026 at 12:48 AM

Toggle theme

Jboy01's Posts

Nairaland ForumJboy01's ProfileJboy01's Posts

1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 26 pages)

ProgrammingRe: Java Programmers; I Need Your Help Urgently Pleaseeeee by jboy01(m): 4:51pm On Nov 20, 2013
Chiscomax: i thought the journey was coming to an end... na wa o. swing again!! have you created any app? can i s it pls?
Bro I think it time u follow the path up the road to real java Gui programming by learning swing. And if u know u are despirate to complete the work, u can use netbean ide drag and drop swing tool for the front end then do the back end programming urself. I think that would help.
ProgrammingRe: Help Pls...android Sdk With Netbeans Ide by jboy01(m): 5:28pm On Nov 19, 2013
Jay clinics: I am more use to netbeans ide but am finding it diffcult to integrate android sdk to it....pls can some1 help out....

Nnadiug@rocketmail.com
I was unable to instal Adt 22.3.0 on my netbean and also connecting it to sdk is a problem.
ProgrammingRe: Pls Help Out ( Visual Basic ) by jboy01(m): 6:38am On Nov 19, 2013
Talk2bryant: was given a quiz in class earlier today, the question goes thus :
create a simple program which will determine if any random number is even or odd?


i just started vb days ago and have been trying to use the if-else statement and have not been getting.... pls gurus in the house help a bro out
Here is my one cent.

Private sub randomTest()
Dim randomInt as integer
Dim rnd as new system.random()
randomInt = rnd.Next(0, 100) 'generate randon from 0 to 99
If(randomInt % 2 > 0) then
System.writeln(" The ganerated value is an odd number"wink

Else
System.writeln("the generated value is an even number"wink
End if
End sub
ProgrammingRe: Java Code For Weather by jboy01(m): 6:12am On Nov 19, 2013
Do u know how to program with java?
ProgrammingRe: Mobile Phone Apps For Nigeria by jboy01(m): 4:02pm On Nov 18, 2013
Why are most java programmers here running toward mobile phone app development?
ProgrammingRe: Farwell To J2ME, It Really Hepled During It's Time Cause Of Its Multiplateform. by jboy01(m): 3:48pm On Nov 18, 2013
Why are most java programmer here running toward android programming?
PhonesRe: Is Your MTN Blackberry Service Working? by jboy01(m): 10:06am On Nov 17, 2013
Mine is working fine
PhonesRe: Galaxy Pocket Running In 4.1.1(see Pics) by jboy01(m): 11:48pm On Nov 11, 2013
I guess u have neva flash a custom rom to ur galaxy pocket pocket before b4. It is still 2.3.6, the 4.11 is just a mere design.
@Op, you don install bbm for ur galaxy pocket? :DI guess u have neva flash a custom rom to ur galaxy pocket pocket before b4. It is still 2.3.6, the 4.11 is just a mere design.
@Op, you don install bbm for ur galaxy pocket?
ProgrammingRe: Problems With Programmers by jboy01(m): 6:30pm On Nov 11, 2013
Lol! Bro u get mouth!
ProgrammingRe: Java-problems by jboy01(m): 9:37am On Nov 10, 2013
Known_pal: Unresolved!:


import java.util.Scanner;
class AlgebraCalc {
public static void main (String args[]){
int a,b,c;
double r1,r2;
Scanner input = new Scanner (System.in) ;
System.out.print("Enter a , b , c respectively: "wink ;
a = input.nextInt();
b = input.nextInt();
c = input.nextInt();

r1 = -b + Math.pow(b * b - 4 * a * c, 0.5)/ 2 * a;
r2 = -b - Math.pow(b * b - 4 * a * c, 0.5) /2 * a;

if ((b * b - 4 * a * c) > 0)
System.out.println("The roots are " + r1 + " and " + r2 );
else if ((b * b - 4 * a * c) < -1)
System.out.println("The root is " + r2 );
else
System.out.println("No Real Roots" );
}
}

After Compiling, the result I got was "The root is NaN" though I used 1 2 3 as my a b c.
Any Help and corrections?
If u do the calculation with hand, u will see that with ur input 1,2,3, the Math.pow(...) Will find d squareRoot of (-eight) which is NOT A NUMBER (NAN). Try to change the input value to like ( a is 10, b is 1 and c is 2) to comfirm.
ProgrammingRe: How Will I Instal Jdbc Mysql In Eclipse by jboy01(op): 2:53am On Nov 09, 2013
Thank you very much guys! I followed the step stated by codeaddict by copy d com-mysql-jdbc.jar into the jre lib/ext. And now I can connect to my database.
Thank you once again.
ProgrammingRe: How Will I Instal Jdbc Mysql In Eclipse by jboy01(op): 3:11pm On Nov 08, 2013
codeaddict: Still need directions?
Yeah because I already have mysql installed for my vb.net, I also have jcreator( about 5.1 megabyte) installed. But it is still not working
ProgrammingRe: Please I Need Help On This Task on java by jboy01(m): 12:40pm On Nov 07, 2013
xtianh: I am developing a gp calculator. How can i assign a value to selected item on the jcombobox. For example i created a jcombobox, and added A,B,C to it as its item, i want if A is selected let A be equals to 5 and multiplied by 2 and the result be pasted in a Jtextfield.

just like A = 5*2 and the result be pasted to a textfield.
I will be waiting for your reply please kindly help me out.
please don't mind my expression
create an event listener for the combox box, and if u are using an ide, in the itemStateChanged event, put

Switch (gradeComboBox.getSelectedIndex()){
Case 0:
JTextBoxResult.setText(String.valueOf(5 x 2));
break;
Case 1:
JTextBoxResult.setText(String.valueOf(4 x 2));
break;
Case 2:
JTextBoxResult.setText(String.valueOf(3 x 2));
break;
Case 3:
JTextBoxResult.setText(String.valueOf(2 x 2));
break;
Case 4:
JTextBoxResult.setText(String.valueOf(1 x 2));
break;
}
ProgrammingHow Will I Instal Jdbc Mysql In Eclipse by jboy01(op): 10:21am On Nov 07, 2013
Pls am using eclipse in coding a small application that involve connection to database, pls how will I instal jdbc mysql driver on my eclipse?
ProgrammingUpdate Jtable At Runtime by jboy01(op): 9:29pm On Oct 27, 2013
pls am trying to update data table at runtime, but its not working.

the table named 'messageTable' was design in netbean with 4 columns. i want to update the table when the application load.
here is my code


public static void main(String args[]) {

try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(MainPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(MainPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(MainPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(MainPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MainPage().setVisible(true);
}
});



DefaultTableModel model=new DefaultTableModel();
JTable messageTable= new JTable(model);

model.insertRow(0,new Object[]{"a","a","a","a"});
model.insertRow(1,new Object[]{"a","a","a","a"});

messageTable.repaint();



}
ProgrammingRe: The Best Java Programming Textbooks by jboy01(m): 7:01am On Oct 21, 2013
sir rinky: *^^ what's java lynda videos are they free? Source pls.
lynda video tutorial is a java video tutorial. the name of the group that made the tutorial is lynda. you can get it on disk from a standard software shop that sell video tutorials.
EducationRe: Student Attempts Suicide Over ASUU Strike by jboy01(m): 2:33pm On Oct 20, 2013
nawa o. why i dey struggle learning new things everyday, somebody dey complain about ASUU. It better student try to learn something tangible during dis strike than wasting time at home. Some people has been doing KASUN KAJI KAJEUN NIG LIMITED since july.
ProgrammingRe: The Best Java Programming Textbooks by jboy01(m): 7:38pm On Oct 19, 2013
GideonG: Go and get Videos on Java
is video tutorial enough to learn java? I believe in reading ebooks, I only watch my java lynda videos when am tired or reading.
ProgrammingRe: Which Is The Best - Online Programming Course Or A Physical Training by jboy01(m): 7:28pm On Oct 19, 2013
but if U are self taught, u are going to have more experience than learning under a teacher.
ProgrammingRe: Help Me Fix My Java Login Code Error by jboy01(op): 4:33pm On Oct 18, 2013
thank you all for the reply. i have fix the bug, the problem occur when i was passing the parameters from the main class to the constructor in the database class, i mistakely interchange state position for date of birth.
ProgrammingRe: Help Me Fix My Java Login Code Error by jboy01(op): 4:29pm On Oct 18, 2013
ogunayo: Is this a login problem or insert problem ?
sorry bro, its an insertion problem
ProgrammingRe: Help Me Fix My Java Login Code Error by jboy01(op): 6:19pm On Oct 17, 2013
This is d error i get:

Oct 17, 2013 6:17:11 PM addressbook.UpdateDatabase updateDatatable
SEVERE: null
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'state' at row 1
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3607)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2427)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2345)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2330)
at addressbook.UpdateDatabase.updateDatatable(UpdateDatabase.java:73)
ProgrammingHelp Me Fix My Java Login Code Error by jboy01(op): 6:16pm On Oct 17, 2013
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*UpDate database
* @author Latyf
*/
public class UpdateDatabase {

private String firstName;
private String midName;
private String lastName;
private String sex;
private String marStatus;
private String birthDate;
private String state;
private String localGov;
private String homeAdd;
private String officeAdd;
private String phoneNumb;
private String email;


public UpdateDatabase(String fN,String mN,String lN,String s,String mS,String bD,String st,String lG,
String hA, String oA,String pN, String em)
{
firstName=fN;
midName=mN;
lastName=lN;
sex=s;
marStatus=mS;
birthDate=bD;
state=st;
localGov=lG;
homeAdd=hA;
officeAdd=oA;
phoneNumb=pN;
email=em;
}

public void updateDatatable() throws ClassNotFoundException
{
Connection conn;
PreparedStatement statement=null;
try {
//String myDriver="com.mysql.jdbc.Driver";
//Class.forName(myDriver);
conn=DriverManager.getConnection("jdbc:mysql://localhost/add_book","root",""wink;

// statement=conn.prepareStatement("INSERT INTO data_book(`first_name`, `middle_name`,"
// + " `last_name`, `sex`, `mar_status`, `birth_date`, `state`, `local_gov`, `home_add`, `office_add`,"
// + " `phone_no`, `email`) VALUES (" + firstName + "," + midName + "," + lastName + "," + sex + "," + marStatus + "," + birthDate + ","
// + state + "," + localGov + "," + homeAdd + "," + officeAdd + "," + phoneNumb + "," + email + "wink"wink;

statement=conn.prepareStatement("INSERT INTO data_book(`first_name`, `middle_name`,`last_name`, `sex`, `mar_status`, `birth_date`, `state`,"
+ " `local_gov`, `home_add`, `office_add`, `phone_no`, `email`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"wink;

statement.setString(1,firstName);
statement.setString(2,midName);
statement.setString(3,lastName);
statement.setString(4,sex);
statement.setString(5,marStatus);
statement.setString(6,birthDate);
statement.setString(7,state);
statement.setString(8,localGov);
statement.setString(9,homeAdd);
statement.setString(10,officeAdd);
statement.setString(11,phoneNumb);
statement.setString(12,email);

statement.executeUpdate();
} catch (SQLException ex) {
Logger.getLogger(UpdateDatabase.class.getName()).log(Level.SEVERE, null, ex);
//System.out.println("here 1"wink;
}
//MYSQL QUERY

}
ProgrammingRe: Please Help Me On Login Code In Java. by jboy01(m): 6:04pm On Oct 17, 2013
i need d one for desktop app
ProgrammingRe: The Best Java Programming Textbooks by jboy01(m): 2:35pm On Oct 16, 2013
Learning java with core java volume 1 version 8. And am going on well with it. Although am in intermediate level when it comes to coding with vb.net.
I find a little similarity between the two languages but my knowledge in vb.net is really helping me a lot.
ProgrammingRe: So You Want To Be A Programmer...? by jboy01(m): 6:21pm On Oct 15, 2013
dsypha: Let me tell u the truth, u can't learn java in 2months, atleast not if u are new to programming. if u learnin it for fun, its ok, but if not u really need a better book, I can recommend some if u ask.
Nice talk pal, I am a vb.net guy(above intermediate), and willing to go into java. I have been into reading java ebook (Core java volume 1) and watch video tuturial ( lynda dot com video tutorial) for like 2 weeks now. Although I am almost done with the basic syntax, I known I still have a lot to learn. Am presently writing code for a calculator with Netbean. Design d front end and coding d back end.
Just using that to perfect my basic skill till I learn up to GUI stage to undastand the jcomponent stuff well.
ProgrammingRe: Nigerian Online Chat App by jboy01(m): 9:33am On Oct 09, 2013
pls guys, am a vb.net guy but trying to extend my knowledge to java. pls which ebook ccan i read to get a full knowledge of developing applications (desktop and mobile) with java.
ProgrammingRe: Programming Career In Either JAVA Or .NET by jboy01(m): 6:31am On Oct 08, 2013
pls I need that of java
latyf01@gmail.com
ProgrammingRe: Nigerian Online Chat App by jboy01(m): 12:28pm On Oct 03, 2013
chupere: Guys, pardon my ignorance but i just want to know if we have any online chat app that is owned by nigerian. Am a proud nigerian and always happen whenever i hear or see nigerians doing something really great for themselves, their family and the country at large despite so many challenges facing us. I've seen alot of chat apps on the internet such as the whatsap, 2go, skype, ebuddy, eskimi, facebook, yahoo messenger and the likes. But i don't know if nigerian application developers have anything in that respect. I am like i do call myself ''an amateur developer'' ,am only good with visual basic.net and oracle.
Some few months ago i decided to try my hands on online chat app- using vb.net, i studied the features of both whatsap and 2go, and try to merge some features to get something really great. I did the drawings and layout stuff, but when i started the coding it proved really tough than i'ld imagined cus i was using vb.net, so i just rested the project......... But i know we've have many great mobile app developers in this country and here on nairaland---- let's put something up, something really great, you can never tell what could happened alot of innovations in the world today started in someone's garrage.
Nice talk bro i also code with vb.net. but i think to develop a good social app for Nigerians, the app much work on almost all platform.
1) mobile app, which can be done with java, vb.net, c# for window phones.
2) desktop app, most especially window os which can be done with vb.net, c# as so on
ProgrammingRe: Update Database Via Wlan by jboy01(op): 8:54pm On Sep 28, 2013
Ymodulus: In addition to MJ solution. Let me elaborate his solution a little.

Since u all computers are connected to the same router. All u have to do is go to the host computer( the computer that have the wamp server installed) then click on the wamp tray and select ONLINE.

Now go to the other computers connected to the network open the command prompt and type the word "IPCONFIG" this will give u the ip of that wlan connection. Now take the ip and paste in the browser as a url. Booom that is. U are good to go.

Take Note. If u must do this restrict ur mysql database to only accept access from localhost. This will prevent unauthorise acces to the database.

Thanks
Thanks pals! I will try it at in d office on monday and will give a feed back.
ProgrammingRe: Update Database Via Wlan by jboy01(op): 6:33am On Sep 28, 2013
mj: Simple way, put your wampserver online, create an adhoc network on the main system, let other systems connect to the network, then open your browser and type the ip address of the main system server.
thanks for the reply.
But all the computers will be connected together by a wireless router.
ProgrammingRe: Update Database Via Wlan by jboy01(op): 9:18pm On Sep 27, 2013
mj: What server are u using??
Wamp server

1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 26 pages)