Java World: Questions And Solutions (java Only Please)

A Member? Please Login  
type your username and password to login
Date: May 16, 2008, 05:42 PM
201218 members and 113388 Topics
Latest Member: hubreality
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Java World: Questions And Solutions (java Only Please)
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Java World: Questions And Solutions (java Only Please)  (Read 220 views)
javadevil
Java World: Questions And Solutions (java Only Please)
« on: April 30, 2008, 11:36 AM »

Hey guys, am a java programmer and would like to help beginners start a good career in Java Programming, Please post you problems and projects here. I solve your problems and give you tips on doing your projects yourself. enjoy and welcome to the java world
kaymi (f)
Re: Java World: Questions And Solutions (java Only Please)
« #1 on: May 07, 2008, 06:54 PM »

Thanks so much,

I am a Beginner and I have been trying to figure this out and I can't,

I have text books, I have ebooks and edocuments, but I seem not to be getting it, about writing codes, setting path, compiling and executing.

I really need your help. Are you residing in Lagos. I wont mind been taught practically, I have to get and understand this because I really need it.

My email is javastudy1@yahoo.com

Please come to my rescue.

Thank you

logica
Re: Java World: Questions And Solutions (java Only Please)
« #2 on: May 07, 2008, 07:18 PM »

i don't know why people cannot understand that you cannot be taught how to program. if you cannot get it by yourself, please forget it and focus your energy on more useful and fruitful endeavors.
Bossman (m)
Re: Java World: Questions And Solutions (java Only Please)
« #3 on: May 07, 2008, 09:17 PM »

I responded in the thread below already. As for the syntax of the language, there are zillions of books online. However, as from learning to program, a lot is going to depend on you. Programming is not like most other subjects.  It's all about problem solving. You analyze a problem and you come up with ways to solve it. It also takes quite some time especially in the beginning.

In my opinion, it's like asking someone to teach you how to think.


http://www.nairaland.com/nigeria/topic-132535.0.html

brine
Re: Java World: Questions And Solutions (java Only Please)
« #4 on: May 08, 2008, 04:40 PM »

Eh!!!
Why so much lecture
X-2-X (m)
Re: Java World: Questions And Solutions (java Only Please)
« #5 on: May 10, 2008, 04:14 AM »

Quote from: kaymi on May 07, 2008, 06:54 PM


I have text books, I have ebooks and edocuments, but I seem not to be getting it, about writing codes, setting path, compiling and executing.
 . . . .

I you have books, etc and still can't figure out how to set classpaths or compile a simple class, then take the advice from Logica. Quit!
javaprince (m)
Re: Java World: Questions And Solutions (java Only Please)
« #6 on: May 12, 2008, 06:50 PM »

I need help in displaying Crystal Reports in Java and linking it to my database backend. I have tried to download iReports from JasperReport but am not sure how to use it yet.
logica
Re: Java World: Questions And Solutions (java Only Please)
« #7 on: May 12, 2008, 07:04 PM »

@ "javaprince"

does the iReport download come with documentation or not? What site did you download it from? Doesn't the site have any documentation?
javadevil
Re: Java World: Questions And Solutions (java Only Please)
« #8 on: May 13, 2008, 10:21 AM »

sorry guys, have been down for a week, please post you questions now
javadevil
Re: Java World: Questions And Solutions (java Only Please)
« #9 on: May 13, 2008, 11:55 AM »

X-2-X, please ignore what logica has writen,  you can be tot any programming language its just a matter of interest, about setting your classpath, please follow the simple method below.

1. Right click on my computer
2. Select property
3  Select the advance Tab,
4. click on environment varible
5. Under System variables scroll to Path
6  Double Click on path, you will  find value similar to this "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program    Files\Microsoft SQL Server\90\Tools\binn\
7 add a semicolon to the end ";" without d quotes;
8. browse to the directory where you installed your JDK, which is by default c:\programfiles\j2sdk1.6\bin,
8. copy the link to the bin directory and paste it after the semicolon you added in the system variables.

I hope that's quiet simple enough for a beginner, please let me know if you have anyother problem.
javadevil
Re: Java World: Questions And Solutions (java Only Please)
« #10 on: May 13, 2008, 11:59 AM »

PLS NOTE ALL JAVA BEGINNERS! DO NOT RUSH WHEN YOU'RE READING ANY JAVA TEXT, ALL WAYS TRY TO TYPE THE CODE AS YOU READ, ITS VERY SLOW BUT EFFECTIVE.   The Java Tutorial is a very Place to start. I don't advice starters to Use Thinking in Java by Bruce Eckel
sbucareer (m)
Re: Java World: Questions And Solutions (java Only Please)
« #11 on: May 13, 2008, 07:22 PM »



Listen all Java enthusiast, if you cannot learn Java from this link you better start thinking of another line of career.

The link is actually used for undergraduate year one in that university. All you see in that link is what year one student have to study to pass over to year two. Try all the assignments.

Second year, Prof Fintan recommends a book called A Java Foundation Classes Primer ISBN: 0-333-77339-X. When you finish the entire trail, you can invest on this second book.

This is all I can say to beginners to Java. Stop moaning and do some work.
sbucareer (m)
Re: Java World: Questions And Solutions (java Only Please)
« #12 on: May 13, 2008, 08:19 PM »


Just a Hint
==================
Java files are called Class. Any java program you write today MUST be a class file. A class is a model of a real life Object. Example let model a Java newbie.

The newbie is called Human. A human has many attributes i.e.

1. Eyes
2. Nose
3. Arm
4. Leg
5.Ear
6. Skin Color
7. Hair Color
8. Height
9. Weight
10. Foot Size

etc.

All these are attributes of a Human. Remember this human does not have a name or weight, Hair Color yet! For us to know this human we must first create it.

To do this we write the class and give the class name as Human i.e

public class Human extends Object{

//We are going to declare all the attributes
public String nose;
public String eyes;
public String ears
public String legs;
public String skinColor;
public String hairColor;
public String height;
public String weight;
public String footSize;

 //Tell the class what Human you want this class to be through this constructor
 public Human ( String nose, String eyes,
                          String ears, String legs,
                          String skinColor, String hairColor,
                           String height, String weight, String footsize ){

  this.nose = nose;
  this.eyes = eyes;
  this,ears = ears;
  this.legs = legs;
  this.skinColor = skinColor;
  this.hairColor = hair Color;
  this.height = height;
  this.weight = weight;
  this.footSize = footSize;

}//End Constructor


//public getter and setters

public void setNose(String nose){
 this.nose = nose;
}//End this Nose modifier

//Do the rest of the setter
,


//Do the getters
public String getNose(){
  return this.nose;
}//End this getter

//Do the rest of the getter

,
}//End Class Human


Object, is a copy of a class that have aggregate attributes, state and behaviour. i.e.

Name = Paul Smith
Nose = Pointed
Eyes = Blue
Weight =14lbs
Height = 2.14meter
Leg = Tall

To do this, we instantiate the class called Human to Paul i.e

Human paul = new Human ("Pointed","Blue","Big","Tall","Tan","blond","2.14","14LBS","20");
System.out.print(paul.toString());

paul.setNose("Bend");
System.out.print(paul.toString());

This is just a short tutorial, try modelling an object in your house. i.e. Model you Mum/Dad car. Good luck.


lalaboi (m)
Re: Java World: Questions And Solutions (java Only Please)
« #13 on: May 13, 2008, 08:24 PM »

just installed java on my laptop but its not compiling my codes!  any body?
Bossman (m)
Re: Java World: Questions And Solutions (java Only Please)
« #14 on: May 13, 2008, 09:10 PM »

Exactly what do you mean by "it's not compiling my code" Is it because you have compilation errors or the Java compiler could not be found? When you type "Java" at the command prompt what do you see? Did you set your classpath as suggested in one of the several threads in this forum? 

To get meaningful and more appropriate answers, I'd suggest you provide more details regarding the error you are getting. 



Quote from: lalaboi on May 13, 2008, 08:24 PM
just installed Java on my laptop but its not compiling my codes! any body?
lalaboi (m)
Re: Java World: Questions And Solutions (java Only Please)
« #15 on: May 13, 2008, 10:56 PM »

thats the point!  i dnt knw how to set my class path

i tried the step above and its still not compiling

like have got a code femi.java , in the command prompt i type in javac femi.java
and its telln me 'javac' is not a recognized smtn smtn
Bossman (m)
Re: Java World: Questions And Solutions (java Only Please)
« #16 on: May 13, 2008, 11:24 PM »

Type this 'java -version' at the command prompt and see if you get anything.

If you do, then at the command prompt type 'set classpath' and post the results here.  If the above is ok, you may have a typo somewhere. The javac.exe is supposed to be in the bin directory, and you should be able to execute it from anywhere if the classpath is set correctly.

lalaboi (m)
Re: Java World: Questions And Solutions (java Only Please)
« #17 on: May 13, 2008, 11:33 PM »

typed in the version and it showed me the version of my java

typed in set class path,  result=  environment variable class path not defined
lalaboi (m)
Re: Java World: Questions And Solutions (java Only Please)
« #18 on: May 13, 2008, 11:36 PM »


this is the main thing in my variable value,  is it corect?

C:\Program Files\PC Connectivity Solution\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Java\jdk1.6.0\bin
lalaboi (m)
Re: Java World: Questions And Solutions (java Only Please)
« #19 on: May 13, 2008, 11:40 PM »

i av just added a comma to the end! according to the step above.

now a diff error appeared!

file not found, use help to do smtn smtn
Bossman (m)
Re: Java World: Questions And Solutions (java Only Please)
« #20 on: May 14, 2008, 12:00 AM »

It should actually be a ; (semi colon) after the path settings. Add the semi colon, then type 'path' at the command prompt and verify that your entire path including the jdk path is there. Then try 'javac' at the command prompt.



Quote from: lalaboi on May 13, 2008, 11:40 PM
i av just added a comma to the end! according to the step above.

now a diff error appeared!

file not found, use help to do smtn smtn
lalaboi (m)
Re: Java World: Questions And Solutions (java Only Please)
« #21 on: May 14, 2008, 01:25 PM »

its still not compiling!
kinswrld (m)
Re: Java World: Questions And Solutions (java Only Please)
« #22 on: May 14, 2008, 06:00 PM »

Hi fateful,i really like your effort you are put for we beginners of Java.My question i install Java 1.1 to my system.I written my Source files with word text and been save so i will want to run the program.The problem am have is what step am i going to take for the program to run.Thanks
Emma4dfuture (m)
Re: Java World: Questions And Solutions (java Only Please)
« #23 on: May 14, 2008, 06:28 PM »

Guys,tnx 4d educatn u're givin.1tin is,I live in an underdevelopd area,so it's hrd 4me2 get this Java bks&cds.
Emma4dfuture (m)
Re: Java World: Questions And Solutions (java Only Please)
« #24 on: May 14, 2008, 06:38 PM »

I'll b most grtful if u can give me some sites 2dwnld them/places where I cn getdem.My email:emmaforthefuture@hotmail.com
lalaboi (m)
Re: Java World: Questions And Solutions (java Only Please)
« #25 on: May 14, 2008, 06:43 PM »

kinswrld (m)
Re: Java World: Questions And Solutions (java Only Please)
« #26 on: Yesterday at 12:34:51 PM »

Please can someone help me with, I like to know what development tools i can use to start in learning Java because am really interested in this program actually have not been to any lecture on this but I do make use of the school library, there is much book I could make use of so. Please for God sake what software can I use that I will understand easily as time goes on. And can a program run on non connected system? My email address is kinsworld21@yahoo.com  or you could link me to a site or books that could solve my problem, I pray God will increase you wisdom as you help shear you knowledge with we the new ones. Thanks
kinswrld (m)
Re: Java World: Questions And Solutions (java Only Please)
« #27 on: Yesterday at 01:11:47 PM »

Please can someone help me with, I like to know what development tools i can use to start in learning Java because am really interested in this program actually have not been to any lecture on this but I do make use of the school library, there is much book I could make use of so. Please for God sake what software can I use that I will understand easily as time goes on. And can a program run on non connected system? My email address is kinsworld21@yahoo.com  or you could link me to a site or books that could solve my problem, I pray God will increase you wisdom as you help shear you knowledge with we the new ones. Thanks
lalaboi (m)
Re: Java World: Questions And Solutions (java Only Please)
« #28 on: Today at 09:18:12 AM »

anybody to help[?

my java is not compiling ohh!!!
 Need Dumbs For Oracle  I Want To Invest In A Big Telecoms Project Any Ideas  The Part To Becoming A Good Programmer, A Guide To Infiltrating The Market  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Jobs (2) Career Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Powered by: SMF, © 2001-2005, Lewis Media. All Rights Reserved.