32,204 Topics
| |
Alright. So here's what I've currently got. Basically, I've got an array of numbers - any amount. My current code counts up the frequency of each number, then prints out the one that is the largest, and it works perfectly. But the problem is, I need to make it be … | |
hello sir.......i am studying MCA final year now i would like learn java so suggest me how to learn java means core and advance java ......... | |
I am trying to implement a toArray() method in my PriorityQueue. The PriorityQueue returns an array of Objects, but I want to do is have an array of the original type of objects which in this case is Job (which is marked by the 'T1'. The following is the toArray() … | |
Man!! I'm freaked out, I'm not able to do it Actually I add dataValues 2d array and colNames array in new created jtable but it doesn't work. Don't know why :S I also wanted to add button before the table but that's doesn't work even... PLease help me... [CODE] /* … | |
Hello! I am new user of this forum, and I want to ask you for ideas for finding the probability of winning in pre-flop, post-flop etc... For example, there are 3 players on the table (2 opponents). A (spade) A(heart) (1st opponent's cards) A (club) 8 (club) (your cards) 7 … | |
i need a code to merge two ordered list of objects of integers.the method should receive references to each of the list objects to be merged , and should return a reference to merged list object. pls help.... | |
When i run this, i get an error message saying TYpe expected and it points to the line having a.drive(100)... Any help please? Newbie... [code] class Car { public Car(){ int odometer=0; System.out.println("Car constructed!"); } public void drive(int miles) { System.out.println("Driving....."); odometer+=miles; } public long odometer; } class Guzzler extends … | |
hi, could sm1 please show me code that can sort and read text/string character by character into an array i.e identify integers and characters and put them in separate fields in an array e.g 2 integers then 3 characters like 23 IAM, 12 Her, or 32 MALE. it shuld also … | |
Hi guys i am working on a java car park simulation which controls the entry and departures of cars using the parking lot, the coding so far is below, but when i compile it i get 8 error messages, i have attached the errors message on the page...if anyone can … | |
Hi frndz!! I am doing a final yr project named as Tracking keyboard,mouse,URL activity for security purpose. This is a research level project in computer science stream.plzz suggest me any ideas if u hv n hw to proceed further.what information is required or which sites,books or links should I refer. | |
Hi, I want to select multiple option from Jcombobox plz help me | |
Can you convert CC++ Code into Java, if so how?? | |
I have written this code to determine duplicate words in the string. but its not working. plz help.... i am getting error in line 19.[code]import java.util.*; import java.util.Scanner; public class duplicate { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = input.nextInt(); System.out.println ("Input length … | |
Hi, sorry if this is an obvious question ive never written a java applet before. I'm looking to write a simple math questions program with a scanner input etc. Can you use a console via an applet? as in inbed within the website a form of console ? that the … | |
Hi, I just finished up AP Computer Science a few weeks ago and decided to write an app that allows me to quiz myself with vocab words and definitions, it works fine while I'm running it in IDE, but when I make it a JAR it refuses to open (I'm … | |
Hi, I am trying to run an applet on a website, but when trying to access a file to write (reading works like a charm), do some wrapping: [CODE] try { FileOutputStream fos = new FileOutputStream("http://mitch9654.zymichost.com/songs.DAT"); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); } catch (FileNotFoundException e) … | |
Creating a program to read a text file full of words in alphabetical order. I then have to read it into a Linked List. The linked list should output total number of words, which I have managed to do. After this it needs to calculate the min and max depth … | |
Hello Guys I need help with adding new row in a JTable. I have created the JTable using Netbeans IDE under Swing Controls. Then I removed all the columns, so that I would add them manually. Now, the function GetFlightInfo() returns an ArrayList with n numbers of rows with 6 … | |
hi..., im having set of points... i need to form a cluster of those points.... i will get another set of points ... and i have to check whether those set of points lies in that cluster or not. please help me how to cluster points i have.... thanks in … | |
Hi, i have got a popup box on a aspx page using JavaScript - what i would like to happen is after the user clicks the box for the browser to navigate to a different aspx page. i have tried using response.redirect and other methods - to no avail. i … | |
Hi.. can anyone pls help me to write the source code for B+ tree and B tree. I would be thankful if anyone provide the full source code for AVL,Splay,B+ and B tree. Plz help me. | |
Hi, i got a jeditor pane working to display web links in my program. normal web pages display fine, and I got a hyperlink listener and that is working so they can click links. I use setPage("url as string");. what I'm noticing is if the page has pictures on it, … | |
Hi Everyone, I am writing a program that i want to output some values from the database using a JoptionPane. I have the output using the System.Out.Println(), but i want a JOptionPane. Would anyone please Help.....??? This is what i have so far; st1 = con.createStatement(); rs2 = st1.executeQuery("select Block,Room,Bed … | |
I have a program in which I have used a .myFileType file. obviously windows does not recognise the file type and so I have to browse for the file in the application. how do I make it so that windows knows .myFiletype's native application and launch the application on double … | |
my java programs are not running. actually they are running but the are invisible. I click on task manager and they show running. I actually click on the screen and you hear an error ding as if you are clicking on the window in a wrong spot. I have windows … | |
Hi All, I want to create a manifest file through java program and wanted to capture the required parameters like excluding generated code , some of the legacy application through manifest file and wanted to generate autmoatically. If anybody have an idea about this kind of requirement do advice, Thanks … | |
Hello. That function worked fine firstly. Then i started to change some code, but nothing essential, just changing some variables to private class fields etc. I've restarted the OS , but has same output this is my code now: [code] doc = (AbstractDocument) jTextPane1.getDocument(); FileReader theFileIO = null; char[] c … | |
[code]import java.awt.*; import java.awt.event.*; import java.applet.*; public class AL extends Frame implements WindowListener,ActionListener { TextField text = new TextField(20); Button b; private int numClicks = 0; public static void main(String[] args) { AL myWindow = new AL("My first window"); myWindow.setSize(350,100); myWindow.setVisible(true); } public AL(String title) { super(title); setLayout(new FlowLayout()); addWindowListener(this); … | |
| Hey guys :) I'm making a code and testing it in drjava but at this stage there is just one function I am having trouble with. Here is my code so far [code=java] import java.util.ArrayList; class Player { //instance fields, a name, a place, and an inventory String name; LocationID … |
I have been working on a tic tac toe game for a couple of days. And I just realize that I needed to do a GUI for it. With the following code, would it be fairly easy to add a GUI to this? and if so, what would be the … |
The End.