Stats: 3,171,119 members, 7,880,483 topics. Date: Thursday, 04 July 2024 at 07:13 PM |
Nairaland Forum / Adewaleafolabi's Profile / Adewaleafolabi's Posts
(1) (2) (3) (4) (5) (6) (7) (8) ... (11) (12) (13) (14) (15) (16) (17) (18) (19) (of 55 pages)
![]() |
Thanks. That wud solve it. Also how do i encrypt a string using md5 . My app connects to a remote database. But i think everything is sent as plain text is there a way to encrypt this data using ssl or any other. |
![]() |
Hi, This is what i intend to achieve
|
![]() |
thanks, printing my jtable would have been a wonderful option if only swing could some how print it just like the way excel would render the same table to the printer. |
![]() |
Thanks i'd get in touch with clickatell. But it seems you didn't quite understand my other problem. I can read write export to excel using jexcel api. What i need is how to send this excel file to the printer |
![]() |
Hi, I wrote an application in java and i neet to send sms from within this application using any bulk sms company. Most offer API's for phpmand aspx. Could some one point me in the right direction. Also I am able to export my Jtable as an excel worksheet but i'd like to know how to send this file to the printer from inside java. Thanks, Afolabi |
![]() |
@bigbrovar really i must admit it, kde has gone way ahead of gnome, gnome better come up with something good for gnome 3 or else i'd also have to move. ![]() |
![]() |
@netsurf i am not in lagos now, i school in ibadan but can make it down once we agree on sumtin. Thanks |
![]() |
@netsurf i know that thats why i wrote it clearly there. Okay maximum 70k. What do u offer for that price. |
![]() |
@netsurf i called him and he said it wasn't BRAND NEW. I need something new within that budget thanks. |
![]() |
I need a new laptop, with intel core 2 processor. 2gb ram thanks |
![]() |
Really nice, could be used for april 1st pranks.Thanks |
![]() |
@webdezzi i feel u jare. Just like i told a friend yesterday, computing is a way of life for me. |
![]() |
Thanks aquastar its just more study for me. |
![]() |
Guy u get talent for comedy o. Its good to see that you were able to solve ur problem. You're on your way to becoming a wiz |
![]() |
@there's a cafe here in ilupeju named ozone, speed goes as high as 800kbp/s, while average is about 120-150kbp/s. The first time i used it i went into panic lol i was getting constant download speed of about 300kbp/s. They use swift wireless hotspot service. |
![]() |
@kobojunkie thanks problem solved. Please could recommend me a book on java thats newbie friendly. I tried deintel but too much stories. Didn't like it. |
![]() |
@kobojunkie thanks problem solved. Please could recommend me a book on java thats newbie friendly. I tried deintel but too much stories. Didn't like it. |
![]() |
Thanks for the reply. That solved the problem but still am not quite clear on this issue. I guess its more studying for me as am ne to java. Okay for question 1, the problem is that the ouput starts from zero instead of 1 for(i=0;i<10;i++) { System.out.println(i); } since i=0 already the first value of i that should be printed is 1 and not 0; Thanks |
![]() |
i have a little problem with java. for(i=0;i<=10;i++) { System.out.println(i); } the output is 0 1 2 3 4 5 6 7 8 9 10 my problem with this is that it begins with 0. Now since i=0 and its less than 10, its supposed to increment it by one so the output should have started with 1. I could just change the value of i such that i=1; but that would create another issue ArrayList<Integer> points; points = new ArrayList<Integer>(); System.out.println(points.size()); for(i=0;i<=points.size();i++) { points.add(i); System.out.println(i+" The size is "+points.size()); System.out.println(points.get(i)); if(i==9) { System.out.println("Out ok" ![]() break; } } Now my array would start from 0 which of course i don't want. if i>1; then would generate an exception Problem 2: I wrote a program to roll a pair of die and count the number of rolls. The program would end if it gets a 1,1. public class NewEmptyJavaApp2 { public static void main(String args[]) { int x=0; int y=0; int count = 0; int count1 = 0; int count2 = 0; while(true) { x=(int)(6*Math.random()+1); y=(int)(6*Math.random()+1); count++; if(x!=1 && y!=1) //Here lies the problem.if changed to || works well { count1++; System.out.println("'"+x+"','"+y+"'" ![]() } else { count2++; System.out.println("'"+x+"','"+y+"'" ![]() break; } } System.out.println("Total:"+count); System.out.println("Non snake:"+count1); System.out.println("snake:"+count2); } } The problem here is the && operator. From my understanding && is supposed to evaluate both conditions but in this case if x=1 and y>2 the program would end which is totally incorrect. Please could someone help me clarify these issues. Thanks. |
![]() |
i have a little problem with java. for(i=0;i<=10;i++) { System.out.println(i); } the output is 0 1 2 3 4 5 6 7 8 9 10 my problem with this is that it begins with 0. Now since i=0 and its less than 10, its supposed to increment it by one so the output should have started with 1. I could just change the value of i such that i=1; but that would create another issue ArrayList<Integer> points; points = new ArrayList<Integer>(); System.out.println(points.size()); for(i=0;i<=points.size();i++) { points.add(i); System.out.println(i+" The size is "+points.size()); System.out.println(points.get(i)); if(i==9) { System.out.println("Out ok" ![]() break; } } Now my array would start from 0 which of course i don't want. if i>1; then would generate an exception Problem 2: I wrote a program to roll a pair of die and count the number of rolls. The program would end if it gets a 1,1. public class NewEmptyJavaApp2 { public static void main(String args[]) { int x=0; int y=0; int count = 0; int count1 = 0; int count2 = 0; while(true) { x=(int)(6*Math.random()+1); y=(int)(6*Math.random()+1); count++; if(x!=1 && y!=1) //Here lies the problem.if changed to || works well { count1++; System.out.println("'"+x+"','"+y+"'" ![]() } else { count2++; System.out.println("'"+x+"','"+y+"'" ![]() break; } } System.out.println("Total:"+count); System.out.println("Non snake:"+count1); System.out.println("snake:"+count2); } } The problem here is the && operator. From my understanding && is supposed to evaluate both conditions but in this case if x=1 and y>2 the program would end which is totally incorrect. Please could someone help me clarify these issues. Thanks. |
![]() |
@lakeside have u tried sourceforge.net ? You'd find anything there nowadays you know. And the beauty of open source is that its open. Also you might like to look into javaFX. PS are u leke from tedder hall. If yes this is wale. How u dey |
![]() |
@seun i think u meant java instead. |
![]() |
Seun i don't quite understand what you mean |
![]() |
Thanks to ASUU i've picked up java, am learning but not a mobile dev yet. |
![]() |
Tried python again but i've moved to java now. And java's been fun. I encounter python frequently since i use ubuntu. Most likely i'd still come back to it. But am actually loving java's style |
![]() |
To install bin files simply open terminal and drag the bin file into it and press enter. To change or install new themes, right click on your desktop and choose change background. A window would appear, Choose theme and happy customization. |
![]() |
@hansibone no mind me. I was busy last weekend and moreover my injury is still telling much on me @prof thanks jare |
![]() |
@hansibone no mind me. I was busy last weekend and moreover my injury is still telling much on me |
![]() |
@4llerbe hansibone already have u a guide on how to install from source files. Also source files contain install instructions. If you extract the archive, inside it you should see a file named install, open it and read the instructions. Its the same as what hansibone wrote. If you now want to make a deb you can install checkinstall. Really installing from source could be a real pain at time cuz of some real strange dependencies |
![]() |
@hansibone when u said at home where were u referring to ? The island or where About the deb issue, i'd go get it online myself. I've been doing that now for some time now. The easy way is to mark the package u need in the synaptic package and generate a package download script from the file menu. Now you can view this script and copy the links to the deb files you want even in windows |
![]() |
@hansibone just some basic stuff like vlc cuz totem really messes up in some areas. Also how do i get to ur place cuz am ready 2come. Tomorrow is gonna be real busy for me. I'd appreciate if you'd reply ASAP. Thanks |
![]() |
you'd probably have the deb's i need self so no need 4 downloads.Ok plz how do i get to ur place ? |
(1) (2) (3) (4) (5) (6) (7) (8) ... (11) (12) (13) (14) (15) (16) (17) (18) (19) (of 55 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 35 |