32,204 Topics

Member Avatar for
Member Avatar for crws416

Hi all, I have taken some code to read a file into an Byte array, which is then returned to another part of my code, below is what i have. [CODE] public void jButton6_actionPerformed(ActionEvent e) { String Filelocation = "c:\\temp\\hello.txt"; try{ InputStream is = new FileInputStream(Filelocation); //get the size of …

Member Avatar for crws416
0
119
Member Avatar for modernage

How do you reverse a linked list using recursion, and return it as a string? String backwards(IntNode head): Create and return a string containing the values in the input list, separated by commas, in reverse order. The last number should not be followed by a comma. Spacing within the string …

Member Avatar for modernage
0
451
Member Avatar for Emperor456

Hi Im creating a new online rpg game that is currently under construction. The game will be set up just like the well known runescape but set in the Ancient world! All the info you need to know is located here... [url]http://emperor462.proboards105.com/index.cgi[/url] But what i wanted to know is if …

Member Avatar for Emperor456
0
110
Member Avatar for sub-zero

Hi, I'm writing a program and it saying their are two missing return statements . can u help me to find the two missing return statements ? :-| [PHP] import java.util.*; import java.io.*; public class DayOfWeek { static Scanner s = new Scanner(System.in); static public class Day { private String …

Member Avatar for sub-zero
0
68
Member Avatar for LEGACYONE_2006

I have the following program working. It takes an array of numbers and returns the index value of each number. However, what I want it to do is to get an integer from input from a user and return the index value of just that integer. If the integer is …

Member Avatar for SeekAnswers
0
86
Member Avatar for Coach_Nate

Sorry for the crummy subject, but I have a serious problem here. I'm trying to check myself as I code and I keep having issues with seeing "old" code. I'm putting together an applet for a class assignment, and I have been periodically trying to view my code (what it's …

Member Avatar for jwenting
0
105
Member Avatar for sidereal

Please people help me with some ideas... everything is necessary now..... here is my code: this thing is supposed to read from a file random numbers and generate the so called Process control block with burst time and the number of the process: import java.util.Scanner; import java.io.*; public class PassProcess …

0
61
Member Avatar for sidereal

Hey.. I am working on this project, where you have to simulate cpu scheduling for 10 processes. I have to use only 2 algorithms like FCFS and Priority. The basic code would be randomly generating 2 files: "burst_time.txt" and "priority.txt" and then reading the random times. I have to save …

0
80
Member Avatar for crws416

HI all, I'm having trouble putting a GUI on an existing java server program i have. I have added a frame to the code but all it does so far is pop up, there is no interaction.. I've tried moving all of my functions accross but to no avail.. i …

Member Avatar for jwenting
0
97
Member Avatar for uwontlose

I have a mm-a940 samsung is there any thing I can do to tweak this phone for better

Member Avatar for uwontlose
0
87
Member Avatar for itstudent123

please can you help me in this BankAccount code i do it but the teacher remove some my code and ask me when i see complete i complete but i when i do it i have some error can you help me i will post my code the client code: …

Member Avatar for Phaelax
0
120
Member Avatar for aarya

i am trying to connect java program to mysql databse. bascically i am aphp programmer. now i want to lear j2ee so i was trying to connect to mysql database.i am getting the error as not able to load the drive thi sis my code import java.sql.*; public class tc …

Member Avatar for jwenting
0
105
Member Avatar for sarahjane

Hi, supposed to implement a game where the queen(counter) is supposed to travel over all 64 squares in 16 moves and it must highlight or mark squares allready passed over. Been at this for last two nights and begining to lose patience any help would be great, thanks. Code is …

Member Avatar for Phaelax
0
165
Member Avatar for Lunaticrr

Me again. Another stump. This time I have to recieve two inputs from the user and perform a few math operations using both those two inputs. Meaning I have [B]String a, b;[/B] for my two user inputs. Is it possible to get all 4 of my math operations, addition, aubtraction, …

Member Avatar for psodhi
0
164
Member Avatar for cazaletm

Hello! Can anyone tell me how to make use of the End of Line constant (TT_EOL) when reading data from a file into a Vector? I understand that TT_EOL returns and int, while vectors only hold class types (Double in my case), so how can you compare the two? I …

0
67
Member Avatar for Shaun1987

Hi, basically I have an array of JButtons 0-25 labeled A through to Z. When each of the buttons are clicked I need to call a function passing the letter value. I thought that I could do this like this: [I] if (buttonObj == letterButton[0]) { functionName(); }[/I] But I …

Member Avatar for Shaun1987
0
180
Member Avatar for ben1977

How do I go about defining the average and total variables in the following script? Assistance is appreciated... Ben import javax.swing.JOptionPane; class minmax { /** Main Method */ public static void main(String[] args) { final double TOTAL_NUMBERS = 5; //Convert string to double double Average = Double.parseDouble(averageString); //Convert string to …

Member Avatar for fdrage
0
96
Member Avatar for static

Hi, i'm now making a project of sending ,receiving ..with SMS.I think only sending, receivng,includeing error handlin doesn't make my project complete. What do i need to improve my proj. plz ignore my mistakes. :cheesy: Thank You

Member Avatar for veerareddy
0
82
Member Avatar for daxxin2002

how do one convert a truth table to boolean equation,I can convert the other way round like below; //Suppose Z = (A.B + C)' public class Boolean_to_truth { public static void main(..... { int a,b,c,z; System.out.println("A B C Z"); for(a = 0;a<=1;a++) for(b = 0;b<=1;b++) for(c = 0;c<=1;c++) } z …

Member Avatar for alpha_foobar
0
101
Member Avatar for sqlchopper

(code) function recalcnet(txt) { switch (txt) { case '0' : recalcnet1(); break;}} function recalcnet1() { var prevbal = 0; var demand = 0; var whatif = 0; var sched = 0; prevbal = document.getElementById('BegInvTextbox').value; demand = document.getElementById('dm1TextBox').value; whatif = document.getElementById('ifm1TextBox').value; sched = document.getElementById('fmm1TextBox').value; document.getElementById('nm1TextBox').value(prevbal - demand + whatif + sched)}; …

Member Avatar for server_crash
0
93
Member Avatar for Eng_Girl

[B]Hello,all I need an urgent help for my senior project I have to do a java program that acts as a SMS server for my SAMBA GSM modem , but its accessed by USB . How to initialize the USB library in java and what can I do to write …

Member Avatar for Phaelax
0
101
Member Avatar for sandesh_daddi

HI FRIENDS I AM DOING MY mca IN PUNE I HAV PROJECT IN JAV FOR 50 MARKS I HAVE NO IDEA ABOUT WHICH PROGRAMS :?: CAN I WILL DO IN JAVA PLZ HELP ME TELL ME SOME PROJECT TITLES

Member Avatar for DMR
0
265
Member Avatar for Dark_Omen

Hi, i was writing a program to make permutations of strings, but I ran into a snag and can't figure out what's wrong. It prints out the permutated strings, but some of them are duplicates. I attached the source Thanks for the help.

Member Avatar for Dark_Omen
0
129
Member Avatar for Efliction

Hey Guys and Gals I just seeing if anyone can help me out? I discovered how to convert a Gui textfeild into an String but cant seem to find the on the api to do it for an int? For example int num = tfNum*****; Just cant find a appropiate …

Member Avatar for tomkeys2006
0
128
Member Avatar for ben1977

I'm trying to write a Java application that will read five double values and find the total, average, minimum and maximum of the values entered. For some reasons after trying to find what wrong with it it's still not building. I'd appreciate someone's expertise on the matter. import javax.swing.JOptionPane; class …

Member Avatar for ben1977
0
165
Member Avatar for dwn

I got a new laptop today and was trying to put some of my old info on the new comp. I went to yahoo sitebuilder to download the file to manage my web site. It downloaded ok , but when i go to the icon, it says " unable to …

Member Avatar for freesoft_2000
0
74
Member Avatar for Tigerdude

I'm working on yet another graph problem. This time, we have to sort it topologically, using a DFS Based algorithm. I've been able to write most of it down, but there is one for loop that confuses me. Our instructor did not make it very clear as to how it …

Member Avatar for Tigerdude
0
259
Member Avatar for Mikecool509

Hello. I have been trying to trouble shoot my brother's computer for some time now. One day, the javascript on his computer disabled or deleted itself. He can't open new web page links, or anything with javascript, his search is disabled because the javascript is not working, and programs like …

Member Avatar for Mikecool509
0
190
Member Avatar for c_est_la_vie

already done the TIO one as follows: do { dStr=JOptionPane.showInputDialog("Please enter "+name+"'s demand:"); d=console.nextInt(); if (d<0) System.out.println("Demand can't be negative."); }while(d<0); but don't know how to transfer it into GUI style? anyone can help me? Thx!!!!

Member Avatar for Dark_Omen
0
97
Member Avatar for fdrage

Hi, How do you go about in creating a direcory folder? I've been playing around with class [B]File [/B]which has the method [B]mkDir()[/B] (no arguments and returns type boolean), which i thought would be the answer to making a directory but apparently not, or perhaps i just dont understand it.

Member Avatar for jwenting
0
119

The End.