32,199 Topics

Member Avatar for
Member Avatar for kimbokasteniv

A friend of mine and I are taking an external computer science test. While studying the review it has become apparent that some of the syntax presented is quite unfamiliar. Here are a few examples: [INLINECODE]Stack<Integer> s = new Stack<Integer>();[/INLINECODE] For this line of code what exactly is the purpose …

Member Avatar for jwenting
0
130
Member Avatar for peter_budo

In the JPanel I placed JTextField and JButton, as the layout I'm using GridBagLayout which is left to default align (center). However because of the size of whole JFrame I would like to get JTextField to left and JButton to right. How do I do that :?: [code] private GridBagLayout …

Member Avatar for peter_budo
0
108
Member Avatar for anti_genius

Hi, I have written a code, when it runs it loads an image and after getting image size it sets the size of the frame in the constructor. But now i want to load image using FileDialog box and then update the frame size as well. But when i access …

Member Avatar for anti_genius
0
96
Member Avatar for MONKEYMAN

[quote=Raineri33;5606]I am new to c++, and i have a program to do as follows: 1) fill a 2D array for the seat chart with * ... DONE 2) add a passenger to the plane I am stuck here, i have the info put into the cin statements etc, but how …

Member Avatar for masijade
-1
105
Member Avatar for skramath

[B]Hi Freinds,[/B] [B]i had to compare 2 wav file,I am able to Capture the sound waves using sound apis.Is there any method to compare two wav files in sound apis,or should i use JMF for this.[/B] [B]Please Advice[/B]

Member Avatar for Phaelax
0
60
Member Avatar for MacGyver Orca

Hi, I am working on a personal program, not homework trust me, and the main engine driving it is a random number generator. Unfortunately, I don't know how to build that engine! To make a long story short, I have objects that have a ranking, from 1 to 10, that …

Member Avatar for MacGyver Orca
0
76
Member Avatar for skrish79

Hi, im very new to java. i would appreciate if some one can help me out with a Java program to calculate simple interest. Thanks in advance regards krishna

Member Avatar for linux
0
93
Member Avatar for PennyBoki

Hi this is my first post here:cheesy:. I'm having a problem with how to throw exception in an applet and how to[B] add [/B]actionPerformed to other buttons. This applet calculates the sqare roots of an equation. It calculates the stuf ok but the thing is that I want to throw …

Member Avatar for iamthwee
0
173
Member Avatar for dowen

=================================== This is the binary search public static int binarySearch(int[] list, int listLength, int searchItem) { int first=0; int last = listLength - 1; int mid; boolean found = false; //Loop until found or end of list. while(first <= last &&!found) { //Find the middle. mid = (first + last) …

Member Avatar for iamthwee
0
111
Member Avatar for dami06

Could someone please give me examples of a full GUI code.. Where I can find it to be precise.. Like images of it along with the java source code..thank you

Member Avatar for iamthwee
0
108
Member Avatar for xtrasponge

this the my first assignment given by my lecturer. i've tried to do it and manage to compile..but the problem is i got confused on how this program execute? is it line by line like c++? can someone show me the sequence on how my program being executed and maybe …

Member Avatar for jwenting
0
115
Member Avatar for George2

Hello everyone, When running my program on Java JVM 5.0, there are strange stack errors. What may be the root cause? (foo.dll is my JNI invoked native library.) -------------------- Registers: EAX=0x0c213e40, EBX=0x00000000, ECX=0x00000000, EDX=0x00000000 ESP=0x0c213e0c, EBP=0x0c213e44, ESI=0x00000000, EDI=0x00000000 EIP=0x0c4e8070, EFLAGS=0x0001024f Top of Stack: (sp=0x0c213e0c) 0x0c213e0c: 00000000 00000000 00000000 0b97aeb0 0x0c213e1c: …

Member Avatar for jwenting
0
125
Member Avatar for kartheeswari_b
Member Avatar for George2

Hello everyone, I am wondering what is the differences between Java HotSpot(TM) Client VM and the J2SE VM I downloaded from java.sun.com? Are they the same thing? Why Hotspot VM has client and server version? thanks in advance, George

Member Avatar for jwenting
0
60
Member Avatar for kavitha0904

hi.. pls anybody can tell me what is CHECKED AND UNCHECKED EXCEPTION means.. i dont understand this.. pls help me..

Member Avatar for jwenting
0
70
Member Avatar for Pauer100

I have an employee class see atthachement whic compiles fine and i have written some code called EmployeeAdd which uses the Employee Class which was deifining an Employee. However my problem is when i am trying to import the Employee in to EmployeeAdd the error message i am getting is …

Member Avatar for Pauer100
0
136
Member Avatar for rpjanaka

hi i want to break the following string.. {ok,[{operators,'sri','mob',45,45,45,45},{operators,'sri','dia',45,45,45,45}]} by using [COLOR=red]{operators, [/COLOR][COLOR=black]this point.. i used the StringTokenizer class to do this by giving the [/COLOR][COLOR=red]{operators, [/COLOR][COLOR=black]as Delimiter. But when it runs it gives completely different result than I expected that is it was matched any character that the delimiter …

Member Avatar for rpjanaka
0
190
Member Avatar for itdisc

Hi all, I Just have to retrieve the data from the oracle database n just write the retrieved data to text file.Please Can anybody send me the code? Its very urgent. [IMG]http://forums.devx.com/images/smilies/frown.gif[/IMG] Thanks in advance.

Member Avatar for ajay_tabbu
0
106
Member Avatar for ajay_tabbu

[code=java] class Rev { char a[]; char i=3; void str() { for(i='A';i<'D';i++) { a[i]='i'; } } void show() { for(int i='A';i<'D';i++) { System.out.print(a[i]); } } Void reversStr() { for(i='A';i<'D';i++) { System.out.print(a[i]); } } } class Revers { public static void main(String[] args) { Rev a1=new Rev(); a1.str(); a1.show(); a1.reversStr(); } …

Member Avatar for iamthwee
0
84
Member Avatar for kimbokasteniv

I was going through the questions in my study guide for computer science, and I noticed a few blocks of code that contained syntax that I had never used before. My first question is on the ^ operator. What exactly does this do? My second questions is on the use …

Member Avatar for kimbokasteniv
0
134
Member Avatar for javabuddy

hi, anybody can teach me how to code user interface in swings using ftp protocol? awaiting for ur reply java buddy

Member Avatar for kimbokasteniv
0
81
Member Avatar for shrini

Firstly,I used an option [B]javac -deprecated[/B] javafilename.java and compiled.secondly i have run the program using [B]java[/B] filename but cannot view any result. can anybody help in this regard,ur help much appreciated Thanks, Shrini.

Member Avatar for jwenting
0
2K
Member Avatar for vivekr

Is it possible to merge together python and javascript.. I am looking forward to fetching the contents of a webpage, parse them and use them in a webpage from javascript. I am a beginner in javascript and i couldn't find any means to fetch the contents(The webpage's entire source code) …

Member Avatar for bumsfeld
0
66
Member Avatar for itsnexgen

Hello guys, I am trying to design a Task handling tool. In the Right hand side, a panel which contains (columns and rows) as : Week/Time Monday Tuesday Wed ... 10:00 AM x 11:00 AM What i want to do here is, try to make a right click on the …

Member Avatar for iamthwee
0
87
Member Avatar for Cudmore

My question today is regarding multidimensional arrays, and synchronization.. I'm working on a client/server project and I'm not sure about the theory of an idea I came up with: I have an array: [INLINECODE]Object[][] myArray = new Object[256][];[/INLINECODE] It is an array of arrays. The length of myArray is 256 …

Member Avatar for Cudmore
0
759
Member Avatar for syed.ijaz

Our company is doing a project for the City of Chicago and we are trying to communicate with their servers using web services. Their environment is java based but we are using .NET on our end. The problem we are currently facing right now is that we are not able …

Member Avatar for jwenting
0
213
Member Avatar for ketz_01

[COLOR=Black][COLOR=Blue]Ok, firstly im new to this java thing...but i think its still exciting to do. but i have an error now...[/COLOR][COLOR=#0000FF][COLOR=Blue].. cannot find symbol symbol: constructor Employee location: class Employee Employee e = new Employee (" info"); and the arrow tingy pointin by the word new...so im wondering wat is …

Member Avatar for iamthwee
0
76
Member Avatar for mitaldoshi

I am a student of comuter enginnering 6thsem. I have to make a project based on java. Please help me by suggesting an award winning project.

Member Avatar for jwenting
0
93
Member Avatar for ronakp25

Hi I am migrating my application from Websphere to JBoss. My whole application is in app folder.(I have defines csc as env variable which points to my app) Can anyone tell me where I can spceify classpath of my application in configuration files in [B][U]JBoss[/U][/B]. Like in websphere I sepecify …

Member Avatar for jwenting
0
84
Member Avatar for cms271828

Hi again, can anyone explain why the code below doesn't execute the attributeAdded(...) method [CODE] package pack1; import java.io.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; public class ShowFrame extends HttpServlet implements ServletContextAttributeListener { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.getServletContext().setAttribute("name","cat"); String v=(String)this.getServletContext().getAttribute("name"); response.setContentType("text/html;charset=UTF-8"); PrintWriter out = …

0
57

The End.