32,204 Topics

Member Avatar for
Member Avatar for zachf632

So I have recently been learning java and everywhere I go I hear that java is a slow language compared to C or c++. I know that when it came out in the 90's that it was a lot slower, but I was wondering how much slower is it today. …

Member Avatar for pseudorandom21
1
195
Member Avatar for Majestics

I am writing a prg which take a value from user and check weather its present in table or not.... [code] table.getValueAt(i,j).toString().toLowerCase() == searchfield.getText().toLowerCase(); [/code] Well if yes then make that cell red... What to write to make cell red?

Member Avatar for mKorbel
0
107
Member Avatar for willywhomperz

I am trying to do several things. 1. Intialize - engage a user in a series of questions to assign values to the class variables, no args, no return value, called from constructor. 2. Display - displays all the class values, each in an sentence, no args, no return value. …

Member Avatar for Majestics
0
208
Member Avatar for ronpar123

I am using JBoss as my app server. My application using almost 100 jars (libraraies).So How can I specify class path for all the libraries jar's because its not possible to define individually in JBoss_CLASSPATH .Can I define xml for the classpath but I don't know how JBoss detect or …

Member Avatar for stultuske
0
438
Member Avatar for baby_c

hello, I have this question to ask from you... when passing a object to a method is it pass by reference or pass by value ? I'm talking about calling another class's method...

Member Avatar for JamesCherrill
0
249
Member Avatar for Mylo92

Good day, I'm new and glad to be here, I just need a help with the my code can anyone help me find the main error with it? The JList is giving me hell and since I migrated to a new laptop I'm failing to establish a connection with my …

Member Avatar for peter_budo
0
213
Member Avatar for ARaza110

Hi, Can anyone please help. I am working on Java 3D Cylinders. I cannot color the different faces of the Cylinder differently. TOP, BOTTOM, BODY. All should have different colors. I tried it with different appearances but to no avail. [code=java] Cylinder c=new Cylinder(); BranchGroup contentBranch = new BranchGroup(); Transform3D …

Member Avatar for ARaza110
0
142
Member Avatar for divyakprabh

Hi, Does java provides any API to find the details of mobile service provider given a mobile number.?? Or any link to find the data regarding this. Thanks in advance

0
60
Member Avatar for civirol02

Hi I want to know what's the problem with my code. I'm just a beginner. I'm trying to display the smallest number, but everytime I run the program, the output is always equal to zero. However if I use this code to find the largest number, wherein the boolean condition …

Member Avatar for civirol02
0
3K
Member Avatar for yup790

Hello. I have decided to design and build an artificial intelligent chat room for the 2012 Google science fair. I will use java for it's ability to constantly expand without editing already written code. This chartroom will need to be able to distinguish verbs nouns adjectives ect, and from his …

Member Avatar for GreenDay2001
0
191
Member Avatar for phoenix911

Hi, First of all I would like to know if this is possible, I have a feeling it is. so if this is, How/What would be the best way to do this? Will I have to download 3rd party libraries? Thanx

Member Avatar for phoenix911
0
74
Member Avatar for Dhanesh10

hello friends, i've 2 forms 1) Home1 and 2)NewAccountForm in Home1 when a button clicked i perform NewAccountForm newAcc= new NewAccountForm (); newAcc.setVisible(true); this.setVisible(false); i.e. make invisible current(Home1) form and visible NewAccountForm , no problem here. [COLOR="Red"]BUT[/COLOR] in NewAccountForm after a button clicked when i try to make invisible current(NewAccountForm)form …

Member Avatar for Dhanesh10
0
6K
Member Avatar for phoenx

Any idea how I can make a applet using a thread and how i will implement it..SOS..

Member Avatar for phoenx
0
111
Member Avatar for Majestics

Is there any way to take oracle backup from java. [code] Connection c = // Connection Setting; st = c.createStatement(); rs = st.executeQuery("//What to write here for backup"); [/code] I have tried imp and exp utility , but they cant be accessed through sqlplus...

Member Avatar for Majestics
0
246
Member Avatar for naffan

Hi all, Quick question, Is there a way to store a GregorianCalendar object in a hard-coded array? Such as you do an int or String ? Or do I have to send 3 ints for dd/mm/yyyy and then create a new GregorianCalendar object in the Constructor? If this is the …

Member Avatar for naffan
0
209
Member Avatar for rayden150

I want to make a Program that takes two inputs one initial number and one final number for example if I input 1 as the beginning number and 13 as the final, I would like the program to output the Fibonacci sequence: 1,1,2,3,5,8,13.. I hope someone understands it.. Pleease i …

Member Avatar for sergent
-2
255
Member Avatar for raghujosh

In some cases of HTML cleaning, I would like to retain the text enclosed between the tags(which is the default behaviour of Jsoup) and in some cases, I would like to remove the text as well as the HTML tags. Can someone please throw some light on how I can …

0
82
Member Avatar for localp

I need to create a swing application, and draw a rectangle and paint it with RGB values. [CODE] Color c = new Color(10, 198, 19, 23); [/CODE] How should i do this ? any tutorial or example i could start with ?

Member Avatar for Ezzaral
0
65
Member Avatar for profyou
Member Avatar for canwilf
0
86
Member Avatar for MonsterCookies

Hello Everyone! I'm looking for some advice from some C# pros out there. I am not a C# developer, I am a java/actionscript developer. I have an old VB6 component wrapped up into activeX that I am trying to update. I have rebuilt the component from scratch in visual studio …

0
103
Member Avatar for iscode

Can anyone help me to convert this java code to vb6 code? [CODE]import java.net.*; import java.io.*; class read_web { static void main(String[] url) { String web = "http://www.website.com"; String vs="",us = ""; try { URL website = new URL(web); URLConnection conn = website.openConnection(); BufferedReader in = new BufferedReader( new InputStreamReader( …

Member Avatar for debasisdas
0
125
Member Avatar for stevanity

I have been tasked with building an application that maintains a simple Student DB to store and process marks of students of 5 departments with 4 batches of students in each dept. I first thought of developing a UI-dataAccess style application. But Was unable to process because of various complexities …

Member Avatar for stevanity
0
103
Member Avatar for Madhusudhan_Ram

Hi All, I am trying tp put messages into a jms queue using jms, webservices and weblogic server 10.0. When i run the web service in a single invocation the messages are put into the queue successfully. But when i try to run a load test on the web service …

0
79
Member Avatar for jazz_vill

I'm trying to populate our database using some curl command like curl --user username:password [url]https://somewebsite.com[/url] curl - d "name=New User Name&address=New User Address" [url]https://somewebsite.com/api/add/new[/url] The instructions that they gave to me uses curl but I want to do it in Java so I decided to use HttpClient here's my code …

Member Avatar for jazz_vill
0
268
Member Avatar for cozmo87

Hi everyone, I'm writing a program that reads numbers from a text file, stores them in a table, does calculations on the numbers and displays the result in a jTable. The scanner reads the numbers as doubles and stores them in an ArrayList. My tablemodel is very similar to the …

Member Avatar for Zetlin
0
171
Member Avatar for baby_c

Hey dear Friends... I'm developing a code for an assignment given that find a solution for a modified Dining philosophers problem.. For that problem I had to create four classes. [ICODE]Philosopher[/ICODE] , [ICODE]chopStick[/ICODE] , [ICODE]samllBowl [/ICODE] and [ICODE]bigBowl[/ICODE].. I implemented the class [ICODE]philosopher[/ICODE] as Runnable.. And the problem is this.. …

Member Avatar for baby_c
0
166
Member Avatar for sirlink99

I am attempting to make a chatroom as my first program that communicates between computers. I am having trouble setting up the Server Socket Though. My program stops when it tries to set up. Here are my variables [CODE] private JTextField textArea; private ServerSocket servSock; private Socket sock; private BufferedReader …

Member Avatar for NormR1
0
221
Member Avatar for stevanity

Im not asking for home work help .I need a guide.. My teacher gave a huge project work for me. I have to develop an application that maintains basic info about all students in my college (every department and IV batches in each department). And I need to maintain their …

Member Avatar for stevanity
0
379
Member Avatar for pradeesh.login

shall we extend abstract class in other methods?????, pls explain me with an clearcut example

Member Avatar for stultuske
0
47
Member Avatar for Majestics

How to open already present text file... So user can see the data in that file... I dont mean FileInput or OutputStream open.

Member Avatar for peter_budo
0
85

The End.