No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
In this example, what's the difference between creating a class variable from the "class Employee" & creating an object from the class GenQueue ?! What's the difference in uses and implementation? import java.util.LinkedList; class GenQueue { private LinkedList list = new LinkedList(); public void enqueue(E item) { list.addLast(item); } public …
I've been studying C++ for two years, then started Java two months ago. My performance in C++ wasn't good at all although I study hard. I thought that the problem is in not understanding the language concepts but when I started a new language with the intention of building up …
Please, I'd like to know the difference and the special uses for each one. If I want to use it for text file compression whose algorithm is as follows, which one is more efficient? Encoding Algorithm 1. Initialize the dictionary to contain all blocks of length one (D={a,b}). 2. Search …
Thanks both of you VERY MUCH. You really made me change the way I think of programming. I've been struggling and suffering for 3 years in my college studies, thinking I'm dumb although I do love programming but didn't understand how to think about a solution when given a problem! …
Boolean eminem = new Boolean("yes"); What does it mean & what does it create? Thanks.
When choosing the input file, I tried three ways & all of them generated errors ! I created the file.txt in the project's folder. I'm using Netbeans IDE. 1) Passing java ShowFile Input.text as a command-line argument [properties ---> run ---> wrote this command-line in the 'Argument' box] 2) Using …
public class BufferedReader { public static void main(String[] args) throws IOException { char c; BufferedReader sen = new BufferedReader (new InputStreamReader(System.in)); **// ERROR** System.out.println("Enter characters, 'q' to quit"); // read characters from the console while(c != 'q') { c = (char) sen.read(); **// ERROR** System.out.print(c); } } } I don't …
I admit it's a part of an assignment but I don't understand what the assignment require in this part. This program is supposed to read 10 numbers from the keyboard and then the application findMax will take one single command line argument. If you invoke findMax 1, it will print …
I'm a beginner too, but this is the source that my professer recommended.... A very useful Java reference http://docs.oracle.com/javase/6/docs/api/ What's SWING ?! http://docs.oracle.com/javase/tutorial/ui/overview/intro.html
Check this out too, it's VERY useful and friendly with (tutorials, delatiled explanation, quizzes...) http://www.w3schools.com/sql/sql_intro.asp
The End.