No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
Hello, everybody I am working on a simple client-server program. The server side is a console program which will send (1)the list of files in home directory and (2)the contents of the selected file to the client side. And the client side is a GUI program which sends requests to … | |
Re: Hey, If you don't want to modify your existing class it would be better for you to extend your existing Fraction class as follows: [CODE]FractionWithOperations extends Fraction{ public Fraction add(Fraction fr){ newNumerator=numerator*fr.getDenominator()+denominator*fr.getNumerator(); newDenominator=denominator*fr.getDenominator(); return new Fraction(newNumerator, newDenominator); } public Fraction subtract(Fraction fr){ newNumerator=numerator*fr.getDenominator()-denominator*fr.getNumerator(); newDenominator=denominator*fr.getDenominator(); return new Fraction(newNumerator, newDenominator); } public … | |
Hi, I have just started my first semester in a Bachelor program 'Computer Engineering'. I have above basic knovledge in Java SE and currently am interested in Python. The problem is that I'm facing some difficulties in determing my purposes about my future career in IT field. I used to … | |
Re: Try to read documentation for the method p[B]ublic String substring(int beginIndex, int endIndex)[/B] | |
Re: If you cannot cd to the folder where the *.java file is located you can use [B]-classpath[/B] option of the javac(java compiler)---see the documentation for [B]javac[/B] | |
Re: Hey! You can implement this method by using the folloving methods: public char[] toCharArray() defined in class [TEX]String[/TEX] and another method: public static boolean isDigit(char ch) defined in class [TEX]Character[/TEX]. OK lets start writing your method (NOTE: This method throws an instance of [B]DigitNotFoundException[/B] which extends class [B]Exceptin[/B]): [CODE]int sumOfDigits(String … | |
Re: Hey! I think you need some state variables. For example state variables holding the current position of the sun in the coordinate system(int currentX, currentY) and another state variable holding the number of button presses(int buttonPress). And in the actionPerformed method you must change the values of the above mentioned … | |
Re: I have faced some class which deals with smth. identical to your task. So I modified that class to meet your requirements and came with the following class. You can create an object-instance of this class and use in your program [CODE]/*************************************************************************** * * * * This program is free … | |
My friend is writing a simple forum, In this forum there is 1 MySQL database with 4 tables(forumsections, members, posts, replies) The question: He wants to notify by mail those members who have posted new posts, when anybody replies to their post. (like in this forum). Now he has a … | |
Hi I need help? please In my site i have smth like newsletter system. Logged in users can post information about their services and this information is shown in my site. I'd like to send such information (posted by users) to the mails of the other member-users of my site. … | |
Hi I am interested in web development particularly in PHP I hope I can get more useful from this community |
The End.