32,204 Topics

Member Avatar for
Member Avatar for skiplatte

I'm trying to split an input string into an array of substrings and currently trying something like this... [CODE] public static void tryp(String inputString){ int index = 0; String[] rArray = new String[1000]; String[] kArray = new String[1000]; int startPos = 0; int x; int newRPos = 0; int newKPos …

Member Avatar for skiplatte
0
155
Member Avatar for StarZ

This program is suppose to merge the two files by taking one element at a time from each, and the third file should contain the numbers from both file from lowest to highest. Data1: 11 25 36 45 56 78 90 Data2: 1 3 5 7 54 32 78 99 …

Member Avatar for Alfredtwo
0
146
Member Avatar for GiRL,IT

hi guyz and GiRlzz (F) ;; how R u ? plllz I need 4 helpping from u !! I've a Q in Java ,, I'm trying to write it in jGRASP but I can't :s plllllzzz hellp me before next Suterday ;s this is my Q 3.Write expressions to compute …

Member Avatar for GiRL,IT
-3
163
Member Avatar for brokenbentou

im a astudent @ LTHS, in my forst year of Java, how do i make a default, and non-default contructor, and how to they work?

Member Avatar for JamesCherrill
0
165
Member Avatar for duminda1986

hi, i need to build a VOIP client using Java technology...so do i need to code the server as well or is there any free VOID servers available?please give any suggestions regards, don

0
57
Member Avatar for OffbeatPatriot

To keep things simple I have a spreadsheet that lists x and y values. I'm not sure how many of these data points there are but 13.5 million is a safe lower bound. Anyway, I wrote a program to parse this file and plot the points in jfreechart and the …

Member Avatar for kvprajapati
0
122
Member Avatar for sciocosmist

Greetings, I was wondering if someone could teach me how to run an executable in java. I have written a Java program that fills out some information, but I need to run a file that is normally run from a command prompt that is an executable. If someone could tell …

Member Avatar for peter_budo
0
5K
Member Avatar for iamsmooth

So my binary search tree doesn't seem to be traversing through all the nodes. each node has references to other nodes. So I'm traversing through right or left (depending on value) until I hit null, which means I can insert. After insertion, I reset root to first so it can …

Member Avatar for iamsmooth
0
123
Member Avatar for Stefano Mtangoo

Hi all, I'm just starting Java and have read some tutorials and reading also thinking in Java and I see it is a good language. I have a question though, what are MINIMUM requirement of ANY Java program for it to run?

Member Avatar for Stefano Mtangoo
0
120
Member Avatar for Tactical Fart

I'm trying to fetch and display an online image in a GUI. The method will "target" an online image (like [url]http://www.site.com/picture.jpg[/url]) and put it in the GUI. Also, I will need to be able to replace the image with another when the need arises. Any ideas?

0
68
Member Avatar for estefania

This program is a game which allows the user to play against a computer in a dice game called ``Pig''. Rules are: * Players alternate turns and try to be the first to reach 100 points. * A turn consists of rolling a die repeatedly until either a 1 is …

0
56
Member Avatar for icreamed

AHHH so i've been writing this code with my teachers help. IT will now be able to get 1 coordinate, but i want it to get teh same number of coordinates, i set my shipsize to.. waht can i do...my teacher said I could do a loop... but.... i couldnt …

0
75
Member Avatar for _dragonwolf_

This project is similar to, but not exactly like, my phonetic project. I am having to construct a GUI and have done so. I have been able to get everything except one part. What I need it to do is: 1) User inputs a string (this part works) 2) When …

Member Avatar for _dragonwolf_
0
241
Member Avatar for kjavaapclass

I am making a tic-tac-toe game and I am scanning in the players name and piece in the viewer. How am I able to access that in the component class? I am not able to put a method in my viewer, so I can't say getPlayer of getPiece, but there …

Member Avatar for santiagozky
0
73
Member Avatar for Bluesilver

I am trying to write a method that accepts two integer parameters and returns their average as a float, but for some reason it is only returning a double. I am quite sure that there needs to be "f" after the resulting value, but it's not showing up. Can someone …

Member Avatar for Bluesilver
0
141
Member Avatar for gibson.nathan

what i am trying to do is take alot of information and use it to calculate a persons carbon footprint based on a list of things that are in the second class of my program. im trying to make everything very easy to read program wise. im doing this assignment …

Member Avatar for gibson.nathan
0
122
Member Avatar for bkafroboy69

public boolean addEvent(int year, int month, int day, int hour, int minute, int duration, String what); This will return true if the event was added and false otherwise. Only valid events will be added to the list. i kind of understand what im suppose to do but i just cant …

Member Avatar for bkafroboy69
0
124
Member Avatar for nonshatter

Can anyone shed some light on these errors? [CODE] public void FaultHandler () { int faultCount = 0; while ( faultCount < 4 ) { DatagramPacket request = new DatagramPacket(requestArray, requestArray.length, aHost, proxyPort); aSocket.send(request); try { aSocket.setSoTimeout(4000); aSocket.receive(reply); } catch ( SocketTimeoutException e ) { faultCount++; continue; } catch ( …

Member Avatar for Cronless
0
211
Member Avatar for shroomiin

Hello everyone. I am required to write a simple code that reads 10 numbers and displays the largest and last number entered. I thought i would be able to do this easily but for some reason the numbers wont get assigned to the variables like i thought. [code] import java.util.Scanner; …

Member Avatar for shroomiin
0
162
Member Avatar for jaison2

hi, i want to be able to draw two eyes with are exactly the same in radius and colour etc next to eachother. So when i open the window the pair of eyes are there in the centre. I have managed to get one eye but i dnt have a …

Member Avatar for jaison2
0
128
Member Avatar for Rahul002

Hello, I want to create database on SQL Server using Javascript and HTML. User will input following data. Server Name, Database name, File Sizes. When I will click "Submit" button database should be created on Selected server with entered name. I am using Client side HTML and Javascript. we need …

Member Avatar for kplcjl
0
474
Member Avatar for Potty391

Hi all, I've been working on a Java guessing game, similar to hangman which rewards you with a picture using the Gogga class (developed by the people who wrote my IT textbook for Grade 10, also I removed gogga for this website, since I doubt you'd be able to find …

0
199
Member Avatar for skelator

Hi, I'm new here. I have been looking around for the last few months. Very new to java and I need help with this assignment. I am to program hangman, I know that this has been asked multiple times. I just cannot seem to find the answers that I need. …

Member Avatar for skelator
0
142
Member Avatar for skiplatte

I'm getting StringIndexOutOfBoundsException when I try to reasign the value of a variable. [icode]protString = protString.substring(newRPos+1, input.length());[/icode] I understand that this is something I would rather not do... but as I don't know the index of newRPos I can't think of another way to iterate. Thanks

Member Avatar for masijade
0
95
Member Avatar for realdrouin

I have a simple program. On the left I have a tree view (obout) very good by the way, and a grid on the right. In my cs file, I wrote a class for the grid. I pass a value and the grid is populated. When I click on a …

Member Avatar for RunTimeError
0
107
Member Avatar for 2Mas

I have an int table, consisting of 7 ints, and is wondering if there is any way of avoiding the same int to be entered twice. And if entering the same int twice, the user of the program would have to re-enter the int again. this is what i've got …

Member Avatar for quuba
0
105
Member Avatar for Sandar Khin

Hi all. pls help me.I repair a program for my need.At that time Text are not appear.Original progarm is here. [code] import java.awt.Color; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.Timer; public class MarqueeFrame …

Member Avatar for Ezzaral
0
164
Member Avatar for iamsmooth

Just wondering what the difference is. I don't think I need to post my code, but basically for my assignment, I have stubs for a binary search tree. There are nodes created in the constructor, and among them are: Node parent Node predecessor Node sucessor Node right Node left Is …

Member Avatar for quuba
0
127
Member Avatar for P00dle

Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these …

Member Avatar for P00dle
0
141
Member Avatar for jrosh

I want to knw whether I can access WAMP 's function (of course mysql) such as export & import programatically. (I am using java) or as mysql commands??? Thanks

Member Avatar for peter_budo
0
92

The End.