32,204 Topics

Member Avatar for
Member Avatar for Cudmore

SO, I'm playing around with an idea. I'm trying to convert primitives to and from a char array for file logging. I've got all the details worked out, but I don't understand something.. Take the following case, for example: [CODE]public static byte[] ToByta (short data) { return new byte[]{ (byte)(data …

Member Avatar for Zork'nPalls
0
138
Member Avatar for Zork'nPalls
Member Avatar for Zork'nPalls
0
93
Member Avatar for mickinator

Hi all, ain't been here in a while, busy busy busy with college... I have an assignment on threads for Operating Systems, I can't actually see how it relates to OS but it is thread based, I haven't worked with threads before, but I have it finished to the best …

Member Avatar for Zork'nPalls
0
154
Member Avatar for codefreak2.0

Greetings everyone... :) I'm new to the DaniWeb community & it looks like a great place to learn from others. As a programmer with very little experience, other than textbooks & class, I'm looking for help in learning to code real world problems effectively. I'm currently reading: "Teach Yourself Java …

Member Avatar for codefreak2.0
0
103
Member Avatar for rickster11

If anyone has a minute, I could use some help. Been working on this program all day. I know it's hard trying to understand someone's code and logic...but I'm hoping there is an easy solution here. My program needs to be able to read and write files at the push …

Member Avatar for rickster11
0
192
Member Avatar for evaristo

Does anybody came across an application architecture diagram(uml Sequence or Collaboration) lately? i mean, there are lots of examples on the books of micro-level application type of solutions, but the broad picture, the framework, in a simplified, yet understandable manner ? the kind of diagram for a GUI app that …

0
55
Member Avatar for ajithraj

haii... pls help me to get the cursor position in javascript....from textArea thankzzzzzzz

Member Avatar for ajithraj
0
51
Member Avatar for jinalh

hi all, m facing some problem when m trying to use calendar in my jsp with spring:bind tags. like below::: <input name="popca1" type="button" tabindex="4" value="..." class="dateButton" onClick="if(this.blur)this.blur();gfPop.fDemoPopDepart(this.form.dc1,this.form.batch_date);"> & 1 hidden variable :: <input name="dc1" type="hidden" value="06/08/2001"> with this in html tag after body tag i include ::: <iframe width=174 height=189 …

Member Avatar for jasimp
0
90
Member Avatar for abhi287

Hi all On my jsp page i m having two tables.. first table have 14 rows which takes input type=text. and my second table is having 9 rows which also takes 9 inputs. Thus total 23 inputs on a form.. Now when the user click submit, i want to check …

Member Avatar for javaAddict
0
91
Member Avatar for newbie_xml

Hi All, i want to use statement like exitvalue=process.waitfor(); my program terminates once i execute the process and so no value is returned by process.waitfor();Nothing that cumes afetr this stmt is executed. Can anyone tell me how to come out of process.waitfor. any pointers for this are also appreciated Thanks …

0
79
Member Avatar for Noliving

I'm not seeing my bracket problem at all! [code=java]import java.util.*; /** A class to represent an ordered list. The data is stored in a linked * list data field. * @author Koffman & Wolfgang */ public class OrderedList<E extends Comparable<E>> implements Iterable<E> { /** A linked list to contain the …

Member Avatar for Noliving
0
248
Member Avatar for rickster11

I really don't understand what I'm doing wrong. I've made windows before..and never have had this problem. The code complies fine, but when I run it I get this message.. java.lang.NoClassDefFoundError: smartMonster Exception in thread "main" right now all I want is a window to pop up with a button. …

Member Avatar for jwenting
0
75
Member Avatar for tactfulsaint

Hello Everyone. I Need a code that can enable me perfom the following task as an administrator i develop a code that i can use to limit other users from perfoming certain task like deleting,inserting updating, the only previledge i can grant is just to submit to the database but …

Member Avatar for orko
0
114
Member Avatar for Noliving

Ok this is my first time doing iterators in java so bear with. Here is what my assignment is asking for: You should add the following methods to the code provided by the authors: public ListIterator <E> iterator() The type of iterator is actually ListIterator because this can be easily …

Member Avatar for Noliving
0
82
Member Avatar for beatlea

Hello, I am trying to write my first ever assignment in Java and am straggling with it. I have a superclass LivingThing and two subclasses, Monster and Human. Both subclasses have an attribute 'strength', but the maximum value of it is different for each of them. In my superclass I …

Member Avatar for beatlea
0
105
Member Avatar for erementarz

Hi, I'm experiencing an OutofMemoryError exception while recursing through a tree with a large number of branches (30) but relatively small depth (5). Here's the basic idea of the code: I start growing the tree using a depth-first method, and after I reach the leaf node, I assign a value …

Member Avatar for Ezzaral
0
110
Member Avatar for drsmith

I am looking for input on the best books/resources for learning Java and JavaScript. The students will be familar with programming in general but will be new to Java/JS. Thanks...DS

Member Avatar for midimatt
0
47
Member Avatar for cheenu78

hi all, I am planning to take up sun certified java developer exam(SCJD). Can any one help me with the topic that you have got as the project. This would help me as I am planning to take scjd up only after 3 months. I want to prepare myself for …

Member Avatar for jasimp
0
247
Member Avatar for newbie_xml

Hi All, I am using the following codeline to run a cmd from cmd prompt. Process p1 = Runtime.getRuntime().exec("cmd.exe /k start vgnimport.... I have my structure like Class A B importcmd = new B(); importcmd.startimp(); sysout("out of cmd prompt"); Class B startimport() { Process p1 = Runtime.getRuntime().exec("cmd.exe /k start vgnimport.... …

Member Avatar for newbie_xml
0
122
Member Avatar for claudiu_is

I have several breakpoints and the debug goes in the first one, skips the next 2, then jumps directly on the last one, as if the 2 in between don't even exist. And this happened recently, with no big changes in the code and I've never experienced anything like it. …

0
115
Member Avatar for mikeandike22

i am trying to make a program in c# based off another program that was written in java i would like to know if anyone nows what syntax you use to link other source files to your program. in other words the c# equivalent to java's [b]import[/b] code.

Member Avatar for Nilkumar
0
189
Member Avatar for deskclutter

Hey, I was wondering if you guys could help me with a homework problem that I have. I need to input data in from a text file and then put that data into two separate arrays. I believe I have that somewhat done now, but I will need to manipulate …

0
53
Member Avatar for larslt

Could someone please help me with finding the greatest common factor(GCF)? i need to know how to put it into code using a loop. Thank you for any help that you can give me!

Member Avatar for Ezzaral
0
126
Member Avatar for nedmo

Hi all, I am doing an application that involves server and client side, the server side is responsible for storing, and retrieving the files, with some little manipulations. The UTF-8 encoding is being used as our default charset, and the data display correct on any java client, like eclipse, or …

Member Avatar for orko
0
120
Member Avatar for KimJack

Can someone tell me how to correct this? [CODE]for(int i = 0; i < 7; i ++) { if(team.group.toys[i].getName().equalsIgnoreCase(name ) { team.insert(team.group.toys[i].getDescrip()); System.out.println("OK"); } } System.out.println("Is not included.");[/CODE] This is so simple that I cannot figure out what the problem is. I need "OK" to print if the getName() equals …

Member Avatar for KimJack
0
98
Member Avatar for debee

Hi everyone, Could any one help me with this code, please. I do not know why it's giving this kind of error. The code, which is a part of a lager program, is as given below. I will try explaining what each variables represent. public void backwardComputation(int m, Double desiredOutput[][]) …

Member Avatar for debee
0
94
Member Avatar for CaffeineCoder

I'm trying to create a burst on the screen by running through an image array. As a test I created 3 gif images named One, Two, and Three (each one displays the associated number). The problem is, there is no way to view each image in the array; the only …

Member Avatar for Ezzaral
0
689
Member Avatar for ntdaycott

Hi i have made a student and cohrt collection class program The compiler give me error: illegal start of expression line 46 The cohort class file: import java.util.*; public class Cohort { private static int groupSize = 15; private HashSet aCohort; public Cohort() { aCohort = new HashSet(); } public …

Member Avatar for Ezzaral
0
128
Member Avatar for madhusamala

i am doing an acadamic java project by using html, servlets. in html form tag what is the url that i have to give in post attribute. and i am using access as my database. it is giving that httpserver error that given table is not found. will u please …

Member Avatar for Nilesh Pagar
0
147
Member Avatar for KimJack

Hello All, I am working with an array of objects that contains names and descriptions. For example: Car : A blue jetta Pet : A small dog . . . My question is since it is an array of objects, how can I extract just the name "Car" or just …

Member Avatar for KimJack
0
97

The End.