32,199 Topics

Member Avatar for
Member Avatar for smoothe19

How do I grab the output sent to the console and save it to a .txt file? Thanks in advanced.

Member Avatar for JamesCherrill
0
3K
Member Avatar for Pytho

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 …

Member Avatar for NormR1
0
94
Member Avatar for crazyIT

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

Member Avatar for NormR1
0
92
Member Avatar for nsyncpilu

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 …

Member Avatar for nsyncpilu
0
460
Member Avatar for quinnifir

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 …

Member Avatar for quinnifir
0
127
Member Avatar for reemhatim

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 …

Member Avatar for reemhatim
0
156
Member Avatar for kalz

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 …

Member Avatar for kalz
0
123
Member Avatar for ARaza110

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 …

Member Avatar for mKorbel
0
144
Member Avatar for jtodd

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 …

Member Avatar for jtodd
0
153
Member Avatar for stevanity

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 …

Member Avatar for stevanity
0
142
Member Avatar for hamzamuradkhanh

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 …

Member Avatar for teo236
0
180
Member Avatar for server_crash

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: …

Member Avatar for stultuske
0
217
Member Avatar for sam1

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 …

Member Avatar for stultuske
0
460
Member Avatar for Dhanesh10

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 …

Member Avatar for Dhanesh10
0
115
Member Avatar for hatebin

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"); …

Member Avatar for NormR1
0
192
Member Avatar for marekbar1985

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] …

Member Avatar for JamesCherrill
0
115
Member Avatar for desert564

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; …

Member Avatar for NormR1
0
255
Member Avatar for Armanious

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, …

Member Avatar for stultuske
0
101
Member Avatar for newcoder310

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

Member Avatar for JamesCherrill
0
86
Member Avatar for jpleas

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 …

Member Avatar for javaAddict
0
488
Member Avatar for sirlink99

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 …

Member Avatar for sirlink99
0
336
Member Avatar for mydreamgirl

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 = …

Member Avatar for mydreamgirl
0
1K
Member Avatar for presley tonde

am about to start software engineering but am not sure of a better programming language to take..help

Member Avatar for Zaad
0
95
Member Avatar for domifa621

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 …

Member Avatar for domifa621
0
170
Member Avatar for HeyJoey

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 { …

Member Avatar for hfx642
0
229
Member Avatar for chixm8_49

I would like to know what "Invalid Stream Header : 61646F62" means? It happens when I run my program. Thanks. :)

Member Avatar for chixm8_49
0
211
Member Avatar for kujta1

i want to make an application with JAVA in which there are registered users. so users can put data in database, can see data from database. my application is there are different doctors from different places and they have common patients( clients) that they care about patients. so they want …

Member Avatar for JamesCherrill
0
82
Member Avatar for sirlink99

I am trying to make a snake game and I am wondering how I could get an element of an vector and then use the number for the y coordinate like when using ararys lets say the x element I am using is 3 then I could type in arrayY[3] …

Member Avatar for mKorbel
0
132
Member Avatar for sirlink99

I am making a simple game and I cant seem to get the line to center. I would like it all to be in a column and centered. I have this line of code that is not centering [CODE] JLabel numberOfChangesLabel = new JLabel("" + totalChanges); pane.add (new JPanel ().add(numberOfChangesLabel)); …

Member Avatar for sirlink99
0
197
Member Avatar for hfx642

I have a few JSpinner(s) and I'm trying to change the button sizes. I know how to change the font of the SpinnerModel(s), but not the button sizes. Can someone please point me in the right direction? TIA!

Member Avatar for hfx642
1
1K

The End.