How can I become a Java programmer
I have started to study Java by Thomas Wu's book (java introdution)
I find it very easy to understand, and now I want to get some books or anyother information that can teach me everthing about Java.
I would like to follow good steps to inprove it.
Colud you tell me a good plan, please?
thank you.
So, I guess by your examples all you need to be a good
programmer is to know how to use different types of
collections? The general concept of data structures and algorithms is alot different than Java collections. I've done this kind of programming in C, C++ AND Java. But, to use your example, even familiarity with Collections doesn't teach you HOW to use them. I can't tell you how many times I've seen colleagues of mine use parallel lists to implement a dictionary instead of a HashMap/HashTable. As I said previously, it will work but it won't ever be fast or the best solution.
And how exactly did YOU learn what
approach works best for those situations? Isn't
wasn't experience, was it?
Granted, I have a fair amount of programming experience but before I'd worked a day as a programmer, I had extensive exposure to order notation (Big O) and algorithms. I knew how array based lists differed from linked lists in terms of the complexity (runtime) of various types of operations and could tell you the best implemenation of a List to use for a required usage pattern. I knew how hashing algorithms worked and what the importance was of things like load factor and collision resolution.
Furthermore, I never said that they shouldn't take
classes. All I said was that if they want a way to
learn but can't take classes that they should come up
with progressively more challenging projects to work
on. In my NSFHO, if they "can't" take classes then they really are getting into the wrong profession. I suppose that you wouldn't mind if your dentist or doctor had no formal education but had done alot of "homestudy"? You may argue that there is no comparison but I disagree. The price that an employeer will pay to fix poorly engineered code is exhorbitant, especially if it is dealing with monetary transactions (e.g. ecommerce). This could be a huge financial liability.
Having said degree, and having
programmed everything from as low level as Linux
kernel code in C to high level as JDBC web apps in
Java, I can say that you learn, remember, and are able
to reuse skills FAR BETTER when you are forced to look
for the info yourself, and not just told what to do.Agreed. In none of my advanced courses was I "told" how to do something, only "what" needed to be done. The difference, as I see it, is that I have significantly more tools in my toolbox that I can use to approach a given problem, as I'm sure you do. As they say, when all you have is a hammer, all problems look like nails.
Similar Messages
-
How can i become Sun Certified Java Programmer?
Dearl All,
Can anyone tell me how can i become Sun Certified Java Programmer?
Thanks in Advance..
thanks & Regards,
Mark Spenser
[web design los angeles|http://www.plaveb.com]No link sigs in here please.
See this link for all information needed:
[http://www.sun.com/training/certification/] -
How can I use Seeburger java functions on SAP XI's user defined functions?
Hi All,
As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions? I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
best regards,
MikeHi Mike !
You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
What kind of functions are you trying to use?
Regards,
Matias. -
How can I share a *.java source file across multiple projects in NetBeans?
I'm sure this simple and a pretty common operation but how can I share a *.java source file across multiple projects in NetBeans? Right now I keep cut, coping and pasting the same source file between multiple projects to re-use the same code. But I could I make this source file a library file or something like that so that I could access it from any project. I assume this would be a generic operation but I mentioned NetBeans for clarity. Thanks.
fiebigc wrote:
I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
Edited by: fiebigc on Jun 20, 2008 5:57 PM
>I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
Edited by: fiebigc on Jun 20, 2008 5:57 PM
Create a class library.
Write your code, compile it to .class files, put those class files in a .jar file and include the jar file in the classpath whenever you want to compile a project against it. -
How can I create a java.awt.Image from ...
Hi all,
How can I create a java.awt.Image from a drawing on a JPanel?
Thanks.JPanel p;
BufferedImage image =
new BufferedImage(p.getWidth(), p.getHeight, BufferedImage.TYPE_INT_RGB);
Graphics2D g = image.createGraphics();
p.paint(g);
g.dispose(); -
How can I run a java-application on starting of Windows 2000
How can I run a java-application without any user on starting of Windows 2000?
For example, if the computer is restarted and nobody enter into it yet, my java-application should run anyway.
How can I do that?Hi, you have to put it in a Windows service.
To do this you have a program, Srvany.exe that allow to insert a .exe or .bat program in a Windows service.
For example, i develop a program, TomcatGuardian and i put it in a service because i need to run it in a server without Administrator logged in.
Regards,
Ivan. -
How can i apply this java program for a jsp page?
import java.io.*;
import java.util.*;
public class FileProcessing
//create a vector container for the input variables
Vector variables = new Vector();
//create a vector container for the constants
Vector constants = new Vector();
/*create a string expression container for the equation
as read from the file */
String expression = " ";
//create double result container for the final result
double result = 0;
public boolean processFile(String filename,String delim)
//index for values vector
int num_values = 0;
//index for constants vector
int num_constants = 0;
//current line being read from the external file.
String curline = " ";
//start reading from the external file
try
FileReader fr = new FileReader(filename);
BufferedReader br = new BufferedReader(fr);
while(true)
curline = br.readLine();
if(curline == null)
break;
//determine the type of current interaction
boolean variable = curline.startsWith("input");
boolean constant = curline.startsWith("constant");
boolean equation = curline.startsWith("equation");
boolean output = curline.startsWith("result");
//on input variables
if(variable)
StringTokenizer st = new StringTokenizer(curline,delim);
int num = st.countTokens();
int count=0;
while(st.hasMoreTokens())
String temp = st.nextToken();
if(count==1)
byte b[]= new byte[100];
System.out.println(temp);
System.in.read(b);
String inputval = (new String(b)).trim();
variables.add(num_values,inputval);
num_values++;
count++;
// on constant values
if(constant)
StringTokenizer st = new StringTokenizer(curline,delim);
int num = st.countTokens();
int count = 0;
while(st.hasMoreTokens())
String temp = st.nextToken();
if(count==1)
byte b[]= new byte[100];
System.out.println(temp);
System.in.read(b);
String cons = (new String(b)).trim();
constants.add(num_constants,cons);
num_constants++;
count++;
// on equation
if(equation)
StringTokenizer st = new StringTokenizer(curline,delim);
int num = st.countTokens();
int count = 0;
while(st.hasMoreTokens())
String temp = st.nextToken();
if(count==2)
this.expression = temp;
count++;
// now we are ready to evaluate the expression
if(output)
org.nfunk.jep.JEP myparser= new org.nfunk.jep.JEP();
myparser.setAllowAssignment(true);
for(int i=1;i<variables.size()+1;i++)
String name = "arg"+Integer.toString(i);
myparser.addVariable(name,new Double(variables.get(i-1)
.toString()).doubleValue());
for(int i=1;i<constants.size()+1;i++)
String name = "arg" +Integer.
toString(i+variables.size());
myparser.addConstant(name,new Double(constants.get(i-1).toString()));
//output is obtained as follows
myparser.parseExpression(expression);
result = myparser.getValue();
System.out.println("Assay value: "+result);
catch(Exception e)
System.out.println(e.toString());
return true;
public static void main(String[] args)
FileProcessing fp = new FileProcessing();
fp.processFile("input.eqn",":");
}//my text file name is: "input.eqn" (given below)
input:Enter Value1:arg1
input:Enter Value2:arg2
input:Enter Value3:arg3
constant:arg4
constant:arg5
Equation:arg1+arg2+arg3
result:how can i apply this java program for a jsp pagewhy do you want to do this ?
Your program reads from a file on the disk and formats based on a patterm.
Jsp is not intended for such stuff.
ram. -
How can I become the Administrator of my deceased Mother's computer, not knowing her passwords?
Reset the password
Forgot Mac Password? How to Reset Your Mac Password (with or without CD)
Change the Admin Password with Mac OS X Single User Mode
Reset mac mini admin password: Apple Support Communities -
How can I get the Java EE 5 Compatibility Test Suite?
How can I get the Java EE 5 Compatibility Test Suite?
which department should I contact with in oracle company in china ?
Who can tell me?
thanks.The title of this forum is...
Community Feedback and Suggestions (Do Not Post Product-Related Questions Here)
And you thought this was the appropriate place to post this question ?:| -
How can I get the java 2D java2D tutorials�H
How can I get the java 2D java2D tutorials which I dont need lookup it online?
The download link for all the Java tutorial is here:
http://java.sun.com/docs/books/tutorial/ -
How can i get a java application
how can i get a java application on my mac pro?
I'm not sure I understand the question. If the application is a standalone applet, you download it as you would any other application or file. If the applet is embedded in a web site, just go to the appropriate web page.
If you can provide more specifics about what it is you are trying to download/accomplish, perhaps we can be of more specific assistance.
Regards. -
How Can I get personal java example source?
i want to know how to program with p-java.
How Can I get personal java example source?
and where can i get them?pjava is pretty much the same as regular java 1.1.x, so you could just look at any java examples. www.javasoft.com has a learning center with tutorials if that's what you're looking for
-
How can i build a java parser/interpreter
How can i build a java parser/interpreter
i know java offers a tokenizer, how can i use it for build a parser or interpreter that recognize tags like this:
<query db="db1" select="row1, row2">
and then perform some actionshow can i use it for build a parser or interpreter that recognize tags like this:A compiler design class would help understand the issues involved.
Or as suggested if you are merely trying to parse XML then there are variety of existing solutions.
Of if not XML and you already understand the principles of compiler design (formally or perhaps with experience with lexx/yacc) then you could use JavaCC
http://www.webgain.com/products/java_cc/ -
How can I drop the java objects from a schema
hi..good afternoon all...
How can I drop the java objects from a database schema???
suppose the credentials are scott/tiger@db1
Another thing is that...I have to do this from cmd(command prompt) as there is no plsql developer or sqldeveloper installed in the machine.
plss help...thanks in advance...hi...i have already tried all the options..but it is showing the error..
ora:01435 - user does not exist
but when i have given the command...
select object type, object_name, status from user_objects where object_type like'%JAVA%';
then it is showing that the java_object is present....
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
SQL>
SQL>
SQL> set linesize 200
SQL>
SQL>
SQL>
SQL> select object_type, object_name, status from user_objects where object_type
like '%JAVA%';
OBJECT_TYPE OBJECT_NAME
STATUS
JAVA CLASS javaclass1
VALID
JAVA SOURCE javaclass1
VALID
SQL> drop java source javaclass1.java;
drop java source javaclass1.java
ERROR at line 1:
ORA-01435: user does not exist
SQL> -
How can I debug webdynpro java application?
hi,
How can I debug webdynpro java application?
ThanksCheck this document
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0cb32c5-36a7-2910-2c9b-ba4a5bbdbb56
Also check this sdn thread Re: DeBugginng The WebDynPro Application particularly shailesh kumar posting
/padmanaban
Edited by: Padmanaban on Sep 26, 2008 1:55 AM
Maybe you are looking for
-
Can you transfer music and audio books between computers via home sharing?
I just reformatted my iMac and would like to restore some music and an audio book from my MacBook Pro. Somehow, I got the audio book onto my MacBook Pro, which was originally downloaded to my iMac, but now I can't seem to transfer it back. Thanks, Pa
-
Cost of batch number in the past
hello is there a way to see what the cost of a batch number was at a specific date(in the past) as well as the quantity on hand in the past? The client wants the following information : Batch Number WHS Item Code Description Quantity Weight
-
White Screen - Hard reset, restore doesn't work
So my iphone just passed it's warranty by 11 days. It is a 3G 8gb. I noticed the white screen thing and googled it. I found out how to do a reset with the home button and power, did that. Fixed it for a brief few minutes. Then white screen again. So
-
Query regarding backup of database
Dear Developers, Greetings Of The Day !!! On button click from my swing application I want to take backup of database. How I can proceed with java. Any help would be appreciated Regards
-
It doesn't seem to matter whether it's a DVD or a CD it just won't eject :-(