Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,156,328 members, 7,829,837 topics. Date: Thursday, 16 May 2024 at 12:29 PM

Java World: Questions And Solutions (java Only Pls) - Programming (2) - Nairaland

Nairaland Forum / Science/Technology / Programming / Java World: Questions And Solutions (java Only Pls) (3452 Views)

Some SEO Interview Questions And Answer / Programmer’s Writer’s Block: Causes And Solutions / NIIT Past Questions And Answers Available Now (2) (3) (4)

(1) (2) (Reply) (Go Down)

Re: Java World: Questions And Solutions (java Only Pls) by Hardballer(m): 10:02am On May 22, 2008
see thts the thing the lecturer dint cover arrays and files in his lectures(he says we shd go and buy the txtbook) so i really dont know hw to go about it and this assignment is like 15% of the whole mark. I just need the solution to the question
Re: Java World: Questions And Solutions (java Only Pls) by javaprince(m): 2:07pm On May 31, 2008
@logica
Thatz not a good answer.

iReport comes with documentation but not enough to inform me on how to embed it within Netbeans JFrame forms
Moreso I though this was a Question & answer forum.
Re: Java World: Questions And Solutions (java Only Pls) by bjccole(m): 5:38pm On Jul 14, 2008
Dear Java Gurus,

How do I represent logic circuit diagram in Java. I can perform the manual hand written work but how do I implement it in Java.

Please you can contact on bjccole@gmail.com.

Thanks.
Re: Java World: Questions And Solutions (java Only Pls) by Ghenghis(m): 8:24pm On Jul 14, 2008
If your talking about implementing your logic diagram its not difficult since that's the building block for all computers.

You have logical AND,OR and negation operators that behave live the normal logic gates.

Since you've not provided details I'm guessing you have a digital circuit already ,

You can then use the SUM OF PRODUCTS (or PRODUCT OF, ) to build your logic

But i must admit its all concept , lets hear more details !
Re: Java World: Questions And Solutions (java Only Pls) by bjccole(m): 10:28am On Jul 17, 2008
These are the questions:

1,Write a program in java with the following input and output given the value of 2 boolean varriable x,y use the program to find x+y, x(+)y and xy

2,To construct a table listing of set of value of all 256 of boolean fucnction for 3 varriable

3, Write a program that can generate a boolean function where the varriable maybe up to a degree of 4
Re: Java World: Questions And Solutions (java Only Pls) by SayoMarvel(m): 11:47pm On Jul 20, 2008
Watzup to y'all beginners aspiring to become professional coders, it may look uninteresting at the beginning but as time goes on(when you start working with GUI toolkits) you will see that its fun. I strongly recommend this book for all of you, "JAVA HOW TO PROGRAM". Anybody that knows it will testify. As stated above do not start using IDEs now, it will make u less of a programmer because you are not yet rooted in the game. When you people are now good(i.e able to construct algorithms and write full working codes without bugs, then you can start using IDEs, even JAVA HOW TO PROGRAM will not introduce you to IDEs at the beginning of the book but for your knowledge, try to read online articles about NetBeans, Eclipse, Sun StudioCreator etc. Try to write codes to solve simple problems and before you know it, you're on your way. Good luck.
Re: Java World: Questions And Solutions (java Only Pls) by SayoMarvel(m): 11:58pm On Jul 20, 2008
sorry, it wasn't here i wanted to post. i'm very sorry for disorganising this thread.
Re: Java World: Questions And Solutions (java Only Pls) by bjccole(m): 9:59am On Jul 21, 2008
Dear Java Gurus,

Please I need answers to the questions above.

Thanks you so much for your anticipated ideas and contributions.
Re: Java World: Questions And Solutions (java Only Pls) by freeranger(m): 12:27pm On Aug 01, 2008
hello grin
Re: Java World: Questions And Solutions (java Only Pls) by malone5923(m): 9:22am On Aug 03, 2008
Hi, Is it possible to get the seed value for sets of number like 5(not randomly generated). I have checked the Api for java but I can only get methods for setting seed values.
Re: Java World: Questions And Solutions (java Only Pls) by javaprince(m): 5:39pm On Aug 03, 2008
@malone
malone5923:

Hi, Is it possible to get the seed value for sets of number like 5(not randomly generated). I have checked the Api for java but I can only get methods for setting seed values.

I don't quite get your question, but if am thinking what you are thiking? Then why would you want to get the seed values? That means u are thinking of reverse engineering. i.e Gettin the Seed Values from a given set of numbers so that u can now generate your own numbers then probably hack into something? Hope thatz not what u mean? Anyway, the way random numbers are been generated its a little deeper than that, and I don't think u can get the seed value from randomly generated values. And secured systems do not use a fixed Random generated number and they still perform some other numeric manipulations to d nos. So forget that line of thinking.

Have you heard of JAND? Java Nigerian Developers? Its a community of Nigerian Developers/Programmers better join at www.naijadukes.net/jand/ . See u there.
Re: Java World: Questions And Solutions (java Only Pls) by malone5923(m): 9:38pm On Aug 03, 2008
I don't quite get your question, but if am thinking what you are thinking? Then why would you want to get the seed values? That means u are thinking of reverse engineering. i.e Gettin the Seed Values from a given set of numbers so that u can now generate your own numbers then probably hack into something? Hope that's not what u mean? Anyway, the way random numbers are been generated its a little deeper than that, and I don't think u can get the seed value from randomly generated values. And secured systems do not use a fixed Random generated number and they still perform some other numeric manipulations to d nos. So forget that line of thinking.
Reverse engineering what the hell do I need that for(not saying is useless) if I want to add new features to stuffs I prefer creating then having full authority
over the features that will be installed. To tell the truth I just wanted to know and I was also reading an example for class Random in the examples that comes with the jdk when you install it and I came a across method getSeed() funny does developers at sun never seem to be a fan of good program readability.
And Yes I have checked out the jand(nice acronym) website and I must confess, please don't find this offence but if you want your community to grow you don't have to talk about how nice the community is(I KNOW THATS WHY TYPED THE URL) or how nice the concept of having a Java community in naija. Instead you post question that you feel will attract programmers thats the only reason they will register but if you continue with selfappraisal about the website you will only end up with 10 visit per month.
Re: Java World: Questions And Solutions (java Only Pls) by javaprince(m): 10:12am On Aug 04, 2008
@malone
Thanks so much for your advice. The truth is the community is very new, and has just begun to grow. The site forum is so simple, and still has very few contributors. But to make it grow, we need support and contributions from Java Programmers/Developers. And remember the forum is just an easy way for members of the community to express themselves and not the MAIN focus.

We just want a community where nigerian java developers can share ideas, experiences, info, learn, etc.

Once again thanks.
Re: Java World: Questions And Solutions (java Only Pls) by malone5923(m): 5:29pm On Aug 13, 2008
@malone
Thanks so much for your advice. The truth is the community is very new, and has just begun to grow. The site forum is so simple, and still has very few contributors. But to make it grow, we need support and contributions from Java Programmers/Developers. And remember the forum is just an easy way for members of the community to express themselves and not the MAIN focus.

We just want a community where nigerian java developers can share ideas, experiences, info, learn, etc.

Once again thanks.
Thank you for not taking my comment offensive.
How can I pick of digits form 5 Int numbers that are typed by the user with three spaces seperating them as in: 45489 to 4 5 4 8 9. Using only division and module operand. I will appreciate if you use peseudocode to answer my questions.
Re: Java World: Questions And Solutions (java Only Pls) by rock101(m): 12:33pm On Aug 14, 2008
hey, can I learn Java (or programming basicly) without havin to study any computer related course at a University or having to attend some other training. Aside from the tutorials at sun.java.com, where else can I get help? I have interest in Computers and all that but my problem is I'm not the reading type. The tutorials at the java site are quite lengthy, I'll be more interested in something practical. If my only choice is to read the whole tutorial, WTF!, I damn will, but for now I'm looking for an alternative. Please give me a very practical answer, as I said earlier I am more than interested in computers.
Re: Java World: Questions And Solutions (java Only Pls) by javarules(m): 7:25am On Aug 17, 2008
Come join the latest in Java Movememnt, yes a JUG has started in Nigeria and its right here


http://naijadukes.net

All your java problems solved and more,


be there,
Re: Java World: Questions And Solutions (java Only Pls) by Ghenghis(m): 5:03pm On Aug 17, 2008
malone5923:

How can I pick of digits form 5 Int numbers that are typed by the user with three spaces seperating them as in: 45489 to 4 5 4 8 9. Using only division and module operand. I will appreciate if you use peseudocode to answer my questions.

You're outsourcing your homework grin

Ok, I'll give you some tips (not in pseudocode)
primary 1 stuff
Since you're using the decimal system :
example 1:
H T U
4 5 7
+ 2 5 9
--------
7 1 6
-------
example 2:
you'll notice that meaning ( 4 x 100) + (5 x 10) + (7)
plus (2 x 100) + ( 5 x 10) + (9)

457 / 100 = 4 REM 57
57 / 10 = 5 REM 7
7/1 = 7

You'll wish you paid more attention in primary 1 shocked (Good luck)
Re: Java World: Questions And Solutions (java Only Pls) by javarules(m): 12:46am On Aug 18, 2008
malone5923:

     How can I pick of digits form 5 Int numbers that are typed by the user with three spaces seperating them as in: 45489 to 4   5   4   8   9. Using only division and module operand. I will appreciate if you use peseudocode to answer my questions.

I think this problem has a simple solution. The one I will provide will solve for n length of string(replace n with 5 or whatever u like)

0. Start
1. Get d length of the String, n
2. raise 10 to the power of n, power
3. convert string to Integer, num
4. while num > 0
       divide num by power, adigit
       print  adigit
       print a single space
       let num => remainder of the above division ///i.e num = num % power
       let power = power/10 ///i.e divide power by 10, the shift operators may come in handy here if u want to use them, but the spec say only div and mod, we'll stick to that
5.    Print "This solution was provided on NairaLand, sponsored by JAND http://www.naijadukes.net/"
6.    Exit

Hope that works,

ciao
rock101:

hey, can I learn Java (or programming basicly) without havin to study any computer related course at a University or having to attend some other training. Aside from the tutorials at sun.java.com, where else can I get help? I have interest in Computers and all that but my problem is I'm not the reading type. The tutorials at the java site are quite lengthy, I'll be more interested in something practical. If my only choice is to read the whole tutorial, WTF!, I damn will, but for now I'm looking for an alternative. Please give me a very practical answer, as I said earlier I am more than interested in computers.
Yes u can, but dont expect it to be a piece of cake, in my own view programming is different from everything, even computer science!! bite me if u want, dts just my view

Help, try http://naijadukes.net

Read read read and read, you are going nowhere without it, even programming has got big books, so my man, u gat to read

Finally, if u gat pple around u who have gone a bit ahead, dt cud help u alot. dts what naijadukes is meant to do

ciao
Re: Java World: Questions And Solutions (java Only Pls) by malone5923(m): 1:51pm On Aug 21, 2008
You're outsourcing your homework

Ok, I'll give you some tips (not in pseudocode)
primary 1 stuff
Since you're using the decimal system :
example 1:
H T You
4 5 7
+ 2 5 9
--------
7 1 6
-------
example 2:
you'll notice that meaning ( 4 x 100) + (5 x 10) + (7)
plus (2 x 100) + ( 5 x 10) + (9)

457 / 100 = 4 REM 57
57 / 10 = 5 REM 7
7/1 = 7

You'll wish you paid more attention in primary 1 (Good luck)
If I had paid more attention in primary 1 I might have understood your point but I was to busy with something I really cant remember.
Primary 1 RULES!!!
And I am not outsourcing my homework(If I had any).
Re: Java World: Questions And Solutions (java Only Pls) by malone5923(m): 2:01pm On Aug 21, 2008
think this problem has a simple solution. The one I will provide will solve for n length of string(replace n with 5 or whatever u like)

0. Start
1. Get d length of the String, n
2. raise 10 to the power of n, power
3. convert string to Integer, num
4. while num > 0
divide num by power, adigit
print adigit
print a single space
let num => remainder of the above division ///i.e num = num % power
let power = power/10 ///i.e divide power by 10, the shift operators may come in handy here if u want to use them, but the spec say only div and mod, we'll stick to that
5. Print "This solution was provided on NairaLand, sponsored by JAND http://www.naijadukes.net/"
6. Exit

Hope that works,

ciao
I know I just dont want to convert the integer to string I want the int value to be manipulated without any need to convert it to string.
Re: Java World: Questions And Solutions (java Only Pls) by gorociano: 2:46pm On Aug 21, 2008
dudes, thanks for starting this thread for java newbies like moi, using JAVA how to program 2007 edition and i'm already thinking in java (i.e i'm a subclass of my dad's family and i implement the class "mummy"wink.
trying to develop a software for cafe management and someone recommended freeradius (on naijadukes.net, cant understand why the site no dey go again) but the problem is i dont know a shit about what freeredius is except that it's a open source program that run on linux.can anyone with experience of using it gimme the loaddown about how to dowload and use it??
Your in JAVA
Femmy Johnson
gorociano@gmail.com
Re: Java World: Questions And Solutions (java Only Pls) by gorociano: 3:08pm On Aug 21, 2008
guys , abeg what certification exams can one write as a java programmer
Re: Java World: Questions And Solutions (java Only Pls) by malone5923(m): 3:51pm On Aug 21, 2008
You're outsourcing your homework

Ok, I'll give you some tips (not in pseudocode)
primary 1 stuff
Since you're using the decimal system :
example 1:
H T You
4 5 7
+ 2 5 9
--------
7 1 6
-------
example 2:
you'll notice that meaning ( 4 x 100) + (5 x 10) + (7)
plus (2 x 100) + ( 5 x 10) + (9)

457 / 100 = 4 REM 57
57 / 10 = 5 REM 7
7/1 = 7

You'll wish you paid more attention in primary 1 (Good luck)
After going back to my primary 1 maths textbook I finally cracked. I guess Primary school wasnt has useless as I thought it was
Primary 1 RULES
Re: Java World: Questions And Solutions (java Only Pls) by Bossman(m): 3:56pm On Aug 21, 2008
There are several. You first need to start with the Programmer Certification (SCJP), then you can go fo rthe others as you choose. The SCJP is a prerequisite for the other Java certifications offered by Sun.

Here are some forums dedicated to the exams.

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?category=7

gorociano:

guys , abeg what certification exams can one write as a java programmer
Re: Java World: Questions And Solutions (java Only Pls) by lucianoefe(m): 4:56pm On Aug 21, 2008
hello once again, i've got a question that has been buggin me since i started my project. pls, can any one, i repeat, any programmer tell me which is beta to implement a multimedia application( image or sound), c++ or java? i really need a reply, its urgent. u guys r my last hope and all i ve,
worried me.

cry

(1) (2) (Reply)

Google Chrome Hacking Contest / Teach Me How To Become A Programmer / Golang Developers' Whatsapp Group

(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. 56
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.