32,199 Topics
| |
hi, im quite new to java, and i've been trying to understand this code, but i have no clue about the red parts. does anyone have any idea of what the red parts of this code do? [CODE] import java.io.*; public class BWTEncode { public static void main(String args[]) { … | |
Hey guys! This is a relativity simple program. It compiles fine but when I try to execute there is a problem. Any insight or advise would be greatly appreciated. Thank you import java.util.Scanner; public class Power { public static void main( String[] args ) { Scanner input = new Scanner( … | |
Hey again guys, I've been stressing over this problem for the past few hours now, and cannot figure out why it's doing what it's doing. I'm rather new to java...but here we go :) I currently have a slideshow class -and here it is. Sorry if it's sloppily written code...but … | |
Hi, can anyone direct me to a good tutorials on drawing in java. i.e i want to draw car and allow it to move horizontally inside a lane. or draw a person and move him vertically or horizontally using keyboard keys. any example codes or tutorials will do. | |
did anyone here know how to draw a exponential graph in java netbean?what link should i refer? | |
Hello I am new to Java. I am building a video game for school - similar to the Sims game - and have encountered an issue. My group is creting all the algorithims for calculating health, keeping track of time, achievments, etc. My job is to create the graphical interfaace. … | |
I have created a text box in html and if the string entered by user is a alphabet it will not show any message ,else it should display a error message..These checking validations of textbox is done in java and called in jsp; ---------------------------------------------------------- [B]a.html [/B] [code=html]<font size="4">Enter the search … | |
I am having multible problems with my code. Here is what it is supposed to do: Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, … | |
Hello everyone, Are there any approaches to invoke Java libraries from C/C++? Thanks in advance, George | |
I am getting Exception in thread "main" java.lang.nullpointerException on line 113,92,200, need help [CODE] // heap.java // demonstrates heaps // to run this program: C>java HeapApp import java.io.*; // //import java.util.Scanner; class Node { private int iData; // data item (key) // ------------------------------------------------------------ public Node(int key) // constructor { iData … | |
public class TestOctagon { public static void main(String[] args) { Octagon octagon = new Octagon(1); System.out.println("1st Octagon " + octagon.toString()); System.out.println("The area is " + octagon.getArea()); System.out.println("The perimeter is " + octagon.getPerimeter()); Octagon octagon1 = new Octagon(2); System.out.println("2nd Octagon " + octagon1.toString()); System.out.println("The area is " + octagon1.getArea()); System.out.println("The perimeter … | |
I have a linklist of nodes which have a link list of edges. This method is trying to get the number of edges so the nodes will know how many edges it has. However, this doesn't really work and I am wondering how to fix it. thank you in advance. … | |
Hi, I'm new to this forum I'm trying to allow my menu items to work by allowing a user to press it and then display a message such as 'door locks' etc and keep a progress that the door is locked or unlocked... pic below highlighted in red however with … | |
Hello, I have the current problem. As it stands im working on an ImageViewer project. I'm having trouble determining the mouse location for what I think are the following reasons. I currently have the frame, and within that frame is a JTabbedPane. Each tab is a new object, which creates … | |
I am trying to make a program that finds the max and min of more than 2 inputs and i am trying to use the Math.Min and Math.Max method but i cant seem to get them too work since they only accept 2 parameters. this is what i tried to … | |
I use this method to check the values from the scanner. My do-while loop prints an error message and then resets to the beginning of the scanner after an invalid value is detected. But it also resets when I've used good values, without the error message. I've been googling up … | |
I am making a simple Notepad Application in Java.I want to find strings in JEditorPane.I have no idea of how to find and highlite it. | |
I apologize if I didn't post this in the right forum, but I did a search on this site and couldn't find anything on this topic... So, here is the deal...I am not at all a programmer, and have no knowledge of it whatsoever...As such, I am working on a … | |
I'm wondering how to start a Boolean array at 1 instead of 0. so far the only thing i can think of is: [CODE] Boolean [] x = new Boolean[12]+ 1; or Boolean [] x= new Boolean[12 + 1]; [/CODE] and the top one does not compile while the bottom … | |
hello guys, i have several problem with exception such as IOException , NullPointerException,and ArrayIndexOutOfBoundsException. i do BLUETOOTH PUBLIC AND PRIVATE CHATROOM. so, while im running the emulator in netbeans, the problem with exception appear in output pane: i already choose PUBLIC chat and do chatting without any problem, let say … | |
Hello, I have been programming with the same JDK SE since last semester and now all of a sudden I am getting an exception in "main" with just a print statement. I uninstalled the old then reinstalled a newer version of the JDK SE from sun but I am still … | |
Hi, I am currently learning the Java programming language and have downloaded the latest Eclipse Platform to program with and encountered an interesting error while trying to import a folder with some of my previous work. the importing client in eclipse encountered some error about a buffer overload which i … | |
Hey Guys I was wondering if anyone could help me. I have to put pictures such as JPEG's into a swing program as part of an assignment. I've looked in textbooks and online but anything I find doesn't work. Can this be done cause I'm completely lost with it? Please … | |
Annual Interest Rate [COLOR="Red"] Monthly Payment[/COLOR] 11.00 [COLOR="Red"]952.32[/COLOR] 11.25 [COLOR="Red"] 971.26[/COLOR] 11.50 [COLOR="Red"]990.29[/COLOR] 11.75 [COLOR="Red"]1009.41[/COLOR] 12.00 [COLOR="Red"]1028.61[/COLOR] I've done the hard part and completed the project, but I can't figure out how to get my program to output in two columns like above. Since this site doesn't take spacing, black … | |
Any good web resources out there for picking up C++ after already knowing Java? It's kind of a yawn to have to go back over concepts that are already familiar - functions, classes, polymorphism, recursion, etc. Really just looking for syntactic differences. Would be great to find some solid tutorials … | |
I want to Edit the Title of Save Dialog Box in JFileChooser from Save to Something Else. How is it possible? | |
I'm pretty proficient with Java but am not sure what's going on with pointers, classes, or imports/includes in C++. I originally had a size() function but I was getting error about it conflicting with my 'int size;' variable. Can functions not share the same name as variables? I renamed it … | |
| Something that i'll probly need to know in the future or even soon. What is the proper term of calling this | thing but blinking, when you type and it shows where you are typing. And is there any java API or any java commands linked to this? thx |
Hi there , basically i need to find connected components in graph using deep first search. i have already implemented the DFS method but unable to think how am i supposed to print out which is the connected components. is there any hint in implementing it using dfs?tips or pseudo … | |
Hi, I am developing small chatting application... when i try to run the application, it throws the IO Exception while creating sockets.. How to resolve resolve the this one..? please help me.. i attached the code for your view... |
The End.