32,204 Topics
| |
Hi, If anyone knows about the source code of [LIST=1] [*][U][B]Depth first search [*]Breadth First search [*]Best First search [*]AStar[/B][/U] [/LIST] Please give me the code. Thank you. | |
Hey guys! I'm a bit new to java and I need your help. I do not need the WHOLE code for this program, I just want to learn how to do this. I just need to learn what should I use (loops, nested loops, etc..)and how should I do it. … | |
[code]import java.util.*; public class SelectSort { // instance variables - replace the example below with your own public int x; public ArrayList<Integer> a; public int n; public SelectSort(int b) { a = new ArrayList<Integer>() ; n = a.size(); for(int i = 1; i < n; i++) { SortNow(); //tried everything … | |
I just want to print the phone number in the form of (123)456-55778 for my result to be valid. I have tried a couple of thing but I am not arriving to the answer. Please help. [CODE]import java.util.*; public class TokenizingTelephoneNumbers { /** * @param args the command line arguments … | |
I have written a code which uses RXTX Serial API for communication. Now I want to distribute a jar file for my program. The problem is that since I have used RXTX Serial API jar & dll files for this needs to be copied in java home. I wrote a … | |
How do I grab the output sent to the console and save it to a .txt file? Thanks in advanced. | |
Hi I'm developing a game that includes a chat room for four people. All the programs must be the same, I don't want one server program and three clients. Here's what it should do [LIST] [*]Someone creates a chat and invites three more there [*]The chat starter will become the … | |
hello am experiencing two problems: 1) am getting this error and i do not know what it means: Hello.java:1:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘java’ 2) how do i get the header file javaCompilor.tab.h, i already have a javaCompilor.tab.c file | |
Hy , I have a problem with the TableModelListener , my application should print out the cell were the content has been modfied but it does notheing. Here is my code. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; import javax.swing.event.*; /** * * @author Pilu */ public class Afisare … | |
Hola. so, im making a simple program right now to work on my java skillz, and just for fun in general (im pretty new to java). so, i was wondering, whats the fastest way to find the maximum number in an array of STRINGS. because i tried parsing the ints … | |
I'm doing a small GUI program it is that I have two buttons when I press on any of the buttons it displays a dialog box saying which button I pressed .One of the buttons is a text with image displayed on it . my problem is that an exception … | |
Hi I am working on a personal project for a friend of mine.The requirement is to display the data fetched from a hand held device namely the product barcode and the quantity.I have followed the manufacturers guide and have flashed the device with a sample program that records the barcode … | |
Hello, Can anyone please tell me how to divide a 3D Cylinder in equal parts. A Cylinder has three fields as defined in the API, TOP, BODY, BOTTOM. I have divided my cylinder in these parts. Now, i only want the Cylinder.BODY (i mean the surface of the cylinder) to … | |
Hey guys. I am trying to sort a list that has been populated using a random number generator. I am trying to use collections to sort the list but I am not have any luck. I have been stuck on this for a while and would greatly appreciate any help … | |
Im building an application to store and manage Student Marks and Im gonna use Java Persistence (JPA) to do the Database work for me. So Ill be retrieving the data from the database into Objects. And then Ill want to display the Data in the objects as a JTable. And … | |
Sir, i m developing a new web browser as my project in java.I have done the initial coding but when i run google homepage on my simple web browser,it shows me some html code online.how to get rid of this code?.i have also attach the view of this problem,plz look … | |
I've created a jar file like this: jar cfmv Manifest.mf RoboPlot.jar RoboPlot.class ImagePlotter.class The manifest.mf file looks like this: Main-Class:RoboPlot For some reason, when I use this command to run it, java -jar RoboPlot.jar it tells me that the main class could not be found I also tried this: Manifest-Version: … | |
hi you know I'm doing a project on java instant messenger. I was thinking how would i implement it. should i use a seperate class for each component of the messenger. for example one class for its gui, one class for its chat diaglog, one for it jtree panel(to show … | |
hello friends, i have two frames suppose A and B, when i open or make visible frame B from frame A by making a new object of frame B, I make invisible frame A by " [COLOR="Red"]this.setVisible(false);[/COLOR] " when i done with work in frame B, i need to close … | |
Hello. Like as the title sayes. Im trying to edit key values in a Map/hashMap/treeMap. For example: [CODE] public class MapExample { public static void main(String[] args) { Map<int,String> mp=new HashMap<int, String>(); // adding or set elements in Map by put method key and value pair mp.put(12, "Two"); mp.put(11, "One"); … | |
Hello everybody, I'm developing my program and I need to send over network encrypted data. I can do this but when I call method responsible for decrypting I receive null. It seems that there's something missing in my code and I don't know what.Let me show you my code: [code=java] … | |
the following program is to print all possible sum combinations of a number for example 6=1+5,2+4,3+3,1+1+4,1+2+3 12=3+9,4+8,5+7,.......,1+1+2+3+5 but i m not getting any output...maybe there's a problem with proper ending of loops pls help[CODE]import java.io.*; public class sumpermutations { public void main()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int input,i,j,d=0,s=0,num=0,d1=0; … | |
Hey, everyone. I'm just here to ask a really simple, quick question. Is [URL="http://www.betterprogrammer.com/"]Better Programmer[/URL] accurate in the sense that it truly tells you how good you are at Java programming? Also, I am 14 years old, and what would a score of 93% be (as in terrible, bad, average, … | |
Hi, I've noticed that in eclipse when you give "Exception" and click on exception it is redirecting to that link.. But actually according to java even if we give keywords or anything inside quotations(" ") it shouldnt be considered right? So is this a bug in eclipse? Thanks | |
I am in a Java Programming class and our instructor has just assigned us our 1st project. The project would not be a problem if I understood the Java Programming Language, from the beginning of my Computer Science Schooling I have yet to understand this code and now that I … | |
I am trying to make a snake program The code I currently have looks like this [CODE] import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.*; public class SnakeG extends JPanel implements KeyListener, Runnable{ private Vector<Point> snake = new Vector<Point> (5,2); private Vector<Rectangle> snakeRectangle = new Vector<Rectangle> (5,2); public void startGraphics … | |
I have unicode for Simplified Chinese. I would like to send an email with Chinese subject and content. The content works fine-which converts unicode to Chinese, however the subject alwasys shows unicode instead of Chinese. Can anybody help? Enclosed you can see a part of my code: [code] session = … | |
am about to start software engineering but am not sure of a better programming language to take..help | |
I know this may be easy to many of you but it hasn't been so for me. I want to apply some exception handling in this simple code. My instructor skimmed over this. If I were in the world of visual studio I would have applied some isNumeric, and some … | |
I've been trying to get this to work. It complies but my char array won't display anything. 'cipher2.in' contains this: 3 L E ABCDEFGHIJKLMNOPQRSTUVWXYZ Output: Cipher Code: Cipher Text: ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher Key: 3 [CODE]import java.util.*; import java.io.*; public class Test2 { public static void main (String[] args) throws IOException { … |
The End.