32,199 Topics
| |
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 … | |
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. | |
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; … | |
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. | |
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 … | |
| I want to create a digital clock in Java can any one help me out i am having problems updating the second variable |
Hai friends, Am using java swing, is there any juint test for swing gui application, kindly help me in this problem.Thanks. | |
[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 … | |
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 … | |
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 … | |
/*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.*; … | |
I need some one explain to me marker interface and give to me an example in java Thanks, | |
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{ … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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? | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
: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: | |
: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 ? |
The End.