32,204 Topics
| |
For the Object class' equals method, the API says :[QUOTE]The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any non-null reference values x and y, this method returns true if and only if x and y refer to the same object … | |
hey everyone !!! well i got a very annoying problem i am teaching my self about java and especially about developing programs that could be used by Nintendo wii remote. i have recently found a perfect program that has been created in java and created for nintendo wii remote and … | |
I need the node sorted (selection sort) whenever the data is entered front or end or deleted front or end. How to get it sort automatically everytime user entered a data? countItems() doesn't seem worked to the selection sort... This is my Node class. Mostly no problem... [CODE] public class … | |
[B]Im stuck on how to display 5 integers in ascending order.i only have the idea to input 3 integers.what is my lacking to my code.Can you figure it out.thank you so much.hope you gonna help me[/B][code]import java.util.*; public class ascendingorder { static Scanner console = new Scanner(System.in); public static void … | |
Hi, Im working on java program for make a simple converter from celcius to reamur and fahrenheit i want to make an exception handle if user try to insert celcius = 0 and >100 using try & catch feature in Java, but until now i couldnt make it, here is … | |
Hi all, Im fairly new to java. Im wanting to connect to mysql but the following is thrown Exception: com.mysql.jdbc.Driver have i missed something? here is the code [code] import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class MySql { public static void main(String args[]) throws Exception { Connection con = … | |
i need to rush my assignment due to my date line. so this is the problem i having. the question say note on design and implenment[Event Classes, Listener Interfaces, Simple file handling, The LinkedList Class] -Memos waiting for attention in a department of a commercial company could be actioned in … | |
| Hello Java friends I'm trying to make a program, using NetBeans, to allow users to scan (using a external scanner) ISBN numbers on books and using this ISBN number to link up to a website to retrieve the information regarding the book(i.e Title, Author, etc). I have not tried using … |
I know it sounds stupid but I want to try this with the kind of for (not the norma for i=0 i<9; i++) but the other one with arraylist. is this possible? If yes please help me match data types Thanks [CODE=JAVA] import java.util.ArrayList; import java.util.List; /** * Created by … | |
Hello! My name is Page, and I am learning how to code in Java. I am working on a program, and it was homework at one time, but the assignment due date is passed. I would just like to get it going so I can learn from my mistakes, and … | |
The API says that the implementation of BlockingQueue are thread safe, but about the drainTo method, it says : [QUOTE]"This operation may be more efficient than repeatedly polling this queue. A failure encountered while attempting to add elements to collection c may result in elements being in neither, either or … | |
what i am trying to do here. is to let the user type a hexadecimal number [code]http://en.wikipedia.org/wiki/Hexadecimal [/code] and then display it. [code] import java.io.*; class Ex23 { public static void main(String[] args) { Console console=System.console(); System.out.println("please type a hexadecimal number"); String input; input=console.readLine(); int number; int number=Integer.parseInt(input); int count=0; … | |
hi i am a bioinformatics student.i am working on a project which is a tool i.e. a small software. i want to use API doc of biojava which involve the classes that help biologist in coding.some one have knowledge of it? its cookbook is available online but me unable to … | |
[TEX] [B]PFA the image of the chart that has been created using jfreechart, I need to append another series of data as percentage value. That value will be overlapping with already present percent value, since my interval is 25,000. Intervals are being generated by itself in JFreechart depending on the … | |
[B] Hi, I'm unable to change the font colors by using java. Can u please help me that how can i change the font colors in java. If you possible please share that respective Font Code. [COLOR="Green"] Thansk & Regards, Jayavardhan Tummidi. [/COLOR] [/B] | |
what i am trying to do here, is to make it possible for the user to type 2 lines, and then say(or display) whether the string of the first sentence correspond to the string of the second sentence. so for example: first sentence: i will go shopping second sentence: Tomorrow, … | |
I tried to do this [CODE]ArrayList<String> a=new ArrayList<String>(2); a.add("dss"); a.add("dsfs"); a.add("fsfs"); [/CODE] Though i have specified a limit of 2 on the collection, i am able to add more. If this is general about Collections, is there any Collection which sets a limit and strictly follows it ? | |
Here is the java code to search for multiple patterns in multiple lines...i m not able to go back to the previous pattern using this code... try tomake an xsl file in the link provided in folder and give the same pattern somewhere in the xsl...and do tell me the … | |
This is must read if you learned Java before Python: Python Is Not Java: [url]http://dirtsimple.org/2004/12/python-is-not-java.html[/url] | |
Please help me =( I'm not native english speaker, therefore some things might be not clear here I have 2 separate files: [B]Main.java[/B] and [B]Open.java[/B] inside [B]main.java[/B] there is a GUI and it has a [B]JTextArea[/B]) where i want to show text (variable) called from [B]open.java[/B] in [B]Main.java [/B] i … | |
Well, I am actually making a custom 2d turn based gaming engine in Java. So far I have actually gotten a solid based down, the ability to load a seamless game world (no instances) as well as a layered world, with a terrain layer, buildings layer, unit layer then an … | |
Hi, I'm working on an assignment and, after a significant amount of googling and reading through my textbook, I can't seem to find a tutorial for anything similar to what I need to do. My aim is to produce a tool which draws a line on the screen based on … | |
I need to write some software to catalog files in a directory hierarchy. The directories of this hierarchy nominally follow this structure: Country City Technology_Type Date Files are then placed under the Date directory. The problem is that until now, files are copied into the hierarchy manually. Occaisionally files have … | |
Hi, I am building a game in which i have used array for applying 52 button, which works fine.But when i try to use Action Listener with the array of button and try use setEnable(false)or true it does not work.I am also sending my. [CODE] import javax.swing.*; import java.awt.BorderLayout; import … | |
this is my final code,, would you pls help me get this right java Menu driven code choices only in letters A, B , C [code] import java.util.*; public class Letters { public static void Menu() { System.out.println("Menu"); System.out.println("A. Summary report for a sales employee "); System.out.println("B. Print a pattern"); … | |
Hi everyone, I am fairly new to programming, but I was wondering if there was a way to run the java program i make when it is not in the bluej compiler (i am using bluej). I would like so that i can double click an icon and my applet … | |
Hi, I have a problem in repainting in a JPanel. Situation: I have a ButPanel which extends JPanel. In this panel I draw some sequences with some text along with it, by overriding paint() method. Eventually the screen size exceeds as input increases I use a CompareFrame which extends JFrame. … | |
Can anyone tell me why I get the following error message when I execute this code: `Exception in thread "main" java.lang.NoSuchMethodError: main` public class Pay { private double hoursWorked = 40; private double rateofPayPerHour = 10; private double withholdingRate = .15; private double grossPay; private double netPay; public void main(String[] … | |
Hello everyone! I've been lurking the forum for quite a while and decided to come to get some help as well. :) Right now I'm learning stacks and the like. I have to work on a program to write code to create a program that will use stacks. I'm not … | |
hi all i want to create an xml file from an array i've been googling but can't find the right one the closest one that i get is in [URL="http://www.higherpass.com/java/Tutorials/Building-Xml-With-Java-And-Dom/"]http://www.higherpass.com/java/Tutorials/Building-Xml-With-Java-And-Dom/[/URL] but it doesn't create an xml file like i wanted to i want to print and create it like c:\xml … |
The End.