32,199 Topics

Member Avatar for
Member Avatar for rajeshbv

My question is: ** (De Morgans law) , De Morgans law can sometimes make it more convinient for us to express a logical ex-pression. These laws state that the ex-pression ! (condition 1 && condition 2) is logically equivalent to the ex-pression (!condition 1 || ! condition 2). Also the …

Member Avatar for nHXenos
-1
159
Member Avatar for jlovesfishiee

Hi, I know that the get() method returns the element at the specified position in the list, so does that mean that for this particular sentence of code: [CODE] HtmlInput inputMsgKey = (HtmlInput) getSendNotificationForm.getElementsByAttribute("input", "name", "msgKey").get(0);[/CODE] get(0); will return the "input" element? Thanks.

Member Avatar for jlovesfishiee
0
77
Member Avatar for hashim11

i really need help... i dont know where the problem... the line error on that part>>`class reserveform extends JFrame implements {` import java.awt.Dimens; import java.awt.*; import javax.swing.*; import java.util.List; import java.util.LinkedList; import java.util.Iterator; import java.util.ListIterator; import java.util.Collections; import java.awt.event.*; class reserveform extends JFrame implements { // operation interface JPanel operation; …

Member Avatar for quuba
0
144
Member Avatar for kdmuk10

I have been teaching myself Java programming for few months now. Now i am looking for some materials which can help me develop my programming technics. It will also be useful materials to deepen my understanding to the java programming. I would appreciate to get some advise.

Member Avatar for kdmuk10
0
172
Member Avatar for Viper588

Hey guys im very new to java and am having some difficulty solveing a problem for my class. I have an array of 10 numbers and have to write a method that will eliminate any duplicates in the array and return that array. Iv been toying with different thing for …

Member Avatar for Viper588
0
258
Member Avatar for Ralphael

I want to create a digital clock in Java can any one help me out i am having problems updating the second variable

Member Avatar for Slimmy
0
91
Member Avatar for softswing

Hai friends, Am using java swing, is there any juint test for swing gui application, kindly help me in this problem.Thanks.

Member Avatar for lookof2day
0
94
Member Avatar for nitins60

[CODE] import java.io.*; import java.io.IOException; public class ReadWriteFile{ static File f1 = new File("C:\\source.txt"); static File f2 = new File("C:\\dest.txt"); public String readFile() throws IOException { String msg = ""; FileReader fr = new FileReader(f1); BufferedReader br = new BufferedReader(fr); msg = br.readLine(); System.out.println(msg); fr.close(); return msg; } public void …

Member Avatar for masijade
0
163
Member Avatar for Akill10

Hey, I was wondering if somebody could test this out for me? I need to know if it acts the same on other pcs as it does on mine. The game seems to randomly speed up/slow down. Can you test if it does the same? [url]http://www.filefront.com/17673747/BoundingBox.jar[/url] It's a simple space …

Member Avatar for Akill10
0
124
Member Avatar for whong09

I was fooling around with some Date classes when I came upon the following anomaly. [CODE=JAVA] import java.text.DateFormat; import java.text.ParseException; public class Class { public static void main(String[] args) { DateFormat df = DateFormat.getInstance(); try { System.out.println(df.parse("12/20/10 1:40 AM")); } catch(ParseException pe) { pe.printStackTrace(); } } } [/CODE] This compiles …

Member Avatar for whong09
0
113
Member Avatar for nutihu

/*trying to set the textfield to null when i input the numbers but the zero still remains after i start typing.How to i get it to disapear when i start typing */ package Vectors; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.*; import java.util.*; import javax.swing.*; …

Member Avatar for ajst
0
3K
Member Avatar for eman 22

I need some one explain to me marker interface and give to me an example in java Thanks,

Member Avatar for JamesCherrill
0
90
Member Avatar for tohobaby

If i want to put tis sentece "No Such Data." where did i nit to implement it into if there was no data found? [CODE]import java.io.*; import java.util.*; class Book { static Map<String, String> phone = new HashMap<String, String>(); public static void main(String args [])throws Exception{ searchBook(); int option; do{ …

0
69
Member Avatar for Kuroshi

Lets say I have a JPanel and an object called ball inside of it, instead of creating gets so the JPanel can draw the ball image I would like the ball object to draw itself on the JPanel. Is it possible? Thanks :D.

Member Avatar for Kuroshi
0
583
Member Avatar for fabricetoussain

for home work assignment we have to Implement a class Product. A product has a name and a price, for example new Product("Toaster", 29.95). Supply methods getName, getPrice, and reducePrice. Supply a program ProductPrinter that makes two products, prints the name and price, reduces their prices by $5.00, and then …

Member Avatar for Eric Cute
0
640
Member Avatar for Akill10

First of all, Is it actually possible for a keyboard to be able to accept input from multiple separate keys at the same time? For instance, If I was to make a simple game like pong, and set an up and down key for each player, could both players press …

Member Avatar for Akill10
0
282
Member Avatar for num90
Member Avatar for pbl
0
80
Member Avatar for jonicse037
Member Avatar for pbl
0
48
Member Avatar for arshi9464

It is said that JAVA is very safe, as the JRE is allocated a dedicated space in the RAM all of the time. Therefore, no virus can piggy back............ Can anybody explain this concept of JRE getting space in RAM and HOW MUCH SPACE IS IT ALLOCATED IN RAM? THANK …

Member Avatar for pbl
0
46
Member Avatar for newbie14

Dear All, I have java listener which keep reading for incoming data to the particular port. Most of the times it works fine only at times it gets too many open files error. Below is my codes what could be wrong? Thank you. [CODE]public static void main(String[] args) { try …

Member Avatar for newbie14
1
4K
Member Avatar for bords

good day everyone... i would like to make a project using barcode reader... can somebody explain me how the the data from the barcode reader can be retrieved..? does the barcode reader keeps on reading data, then you are just going to break the process thru your program codes...? plz …

0
69
Member Avatar for gedas

hey guys, im creating web service where i have one method in the web server that should be returning me string array. the problem is when i use "design view" to add the operation(method) to the server it does not allow me to chose string array as a return type. …

Member Avatar for gedas
0
243
Member Avatar for neemo6

Im looking into getting these certifications. I was just wondering how they are looked at within the programming community/ job markets? Is it something worth looking into or is it more of a converstational/bragging piece?

Member Avatar for ~s.o.s~
0
83
Member Avatar for kimmie6067

Hello new here, I couldn't find where this belonged. It's really hard with dail-up my satillite broke and couldn't afford to get it fixed right now so.......why can't I download Java and Adobe? I just bought this new computer, it's a Dell Inspiron 580s. This is the error code I …

Member Avatar for SgtMe
0
205
Member Avatar for eyndyel

I'm currently trying to make a mini dictionary. To do it i need to learn how to sort strings in alphabetical order. Can anyone tell me or give me a hint as to how am i going to sort the words in alphabetical order.

Member Avatar for jon.kiparsky
0
175
Member Avatar for LianaN

Hi! I created JToolBar, but it is always attached to JPanel. If I run my api, then I can drag and drop JToolBar in order to separate it from JPanel. I want to programmatically make JToolBar to look as a separate window (e.g. as a toolbar in Photoshop). Does anybody …

Member Avatar for LianaN
0
134
Member Avatar for ZEZO2010

Hi all I'm working in the program which create two objects both object contains type , color , price, weight And I done with but the problem is how I can round the number in price and weight becuse i change the weight from pound to kg how i can …

Member Avatar for ZEZO2010
0
95
Member Avatar for VKS123

Hello, :?: I need help with adding int arrays i got the everything working except for when i need to carry more than once and if the carry isn't in the ones digit honestly i can't think of anything :$ any ideas, suggestion, code would be welcomed [CODE] public class …

0
104
Member Avatar for I<LateNupurGuha

:icon_rolleyes: Describe the [COLOR="red"]differences[/COLOR] and [COLOR="Green"]similarities[/COLOR] between the [B]inner classes[/B] and [B]subclasses[/B] in the context of their objects created [B][COLOR="red"]([/COLOR][/B][I]i.e.[/I] [B]non-static[/B][B][COLOR="Red"])[/COLOR][/B]; Analyze the control flow in a [U]simple program where they are nested jointly[/U] and deeply by all possible extreme situations .......... :icon_question:

Member Avatar for JamesCherrill
0
102
Member Avatar for I<LateNupurGuha

:icon_cry: How the [B]JDK[/B] tool could know the (directory that contained the first element of the) [I]Fully Qualified Package-Name[/I] of the [U]required class[/U] that yet to be searched ?

Member Avatar for ~s.o.s~
0
91

The End.