32,199 Topics

Member Avatar for
Member Avatar for daudiam

[CODE]class R2 { final int t; void doit(){ t=7; } }[/CODE] Blank finals allow us to declare a final variable without explicitly initializing it. We can initialize it only once later. Then, why is th above code not working ?

Member Avatar for daudiam
0
155
Member Avatar for harry.jhone

Hi, I am new member. I am not from any technical background but still like very much on how to develop application software and doing research regularly. My question from expert like you is Is there any powerfully software available that automatically create software without and coding knowledge. still conceptualizations …

Member Avatar for kvprajapati
0
90
Member Avatar for WolfShield

Hey everyone, I'm programming (obviously) and have run into a challenge. I'll cut right to the chase, if someone would tell me how to compare a variable to each item in an array I would be very grateful. Thanks for the help! -[B][I]WolfShield[/I][/B]

Member Avatar for ~s.o.s~
0
90
Member Avatar for daudiam

I can understand that the subtype covariance relation should not hold for parameterized types, but why should it hold for arrays ? One of the books (Khalid Moghul) said [QUOTE]This relation holds for arrays because the element type is available at runtime[/QUOTE] How does the element type being available at …

Member Avatar for daudiam
0
169
Member Avatar for plasticfood
Member Avatar for jlovesfishiee

Does anyone know why the SessionBean in the netbeans keep disappearing? I did nothing but some hard coding. But when I go back to the design page, I realised that my SessionBean is no longer there. In fact it has happened several times and even resetting netbeans doesn't help. Is …

Member Avatar for jlovesfishiee
0
88
Member Avatar for jon.kiparsky

Has anyone got any clever tricks for determining the size of the contents of a directory without doing the obvious (descend recursively and count bytes)? I'm trying to make a progress bar happen for a recursive descend-read-and-load of a directory, and it would be cool if I could track it …

Member Avatar for jon.kiparsky
0
335
Member Avatar for prem2

Dear team, I have done some java programs .Still i am confused what is the difference between j2se vs j2ee vs j2me . Can any one explain what is the diffrence . I want to do sun certificate in java.Can any one have idea about the sun certificate. Thank you, …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for bangor_boy

Few questions on over riding. I am interiting a method openRead from another class, the method is to be overridden so that the scanner class uses the provided delimiter pattern, which is referenced. I need to make use of the scanner method. method from another class [CODE]public boolean openRead() throws …

Member Avatar for pbl
0
108
Member Avatar for usiyalla

hai i want to embed browser in my java program i google and find JDIC.I dont know how to use it. So i really wanna ask can i use Jdic to emmbed browser in my java program. Is there any good tutorial. .

Member Avatar for usiyalla
0
126
Member Avatar for gedas

hey, how do you return array value from the server operation/method back to the client. i create operations in the server using the "design view" and by adding operation where i declare return value and parameters of the method. the project is created in net beans. please help i been …

0
88
Member Avatar for sijothomas

Dear friends... Here i am trying to use openCV in java using NETBEANS(windows XP).., For that i did the following .. [B]1-Install OpenCV-2.2.0-win32-vs2010.exe in C:\openCV 2-Then i put the javaCV and JNA in the library (System path.) 3-The i use thae following code in the netbeans[/B] [CODE] package samplejavacv; import …

0
68
Member Avatar for compaquser

Hi, I'm looking for some project ideas for my postgraduate studies.. am interested in embeded technologies with wireless data mining. Please could people suggest possible topic related the field am interested in.Reply me as soon as possible. The platform i plan to develop is Java. Thank you.

0
48
Member Avatar for xuexue

hi guys, i am generating a certain element using javascript inside a table.. now, my problem is that, inside a cell, i will input a text and a textbox.. if the sequence is like this, text textbox both displays in the screen, if it's like this, textbox text only the …

Member Avatar for xuexue
0
103
Member Avatar for bizzystar4ever

I am sorry again I have exam tomorrow this program like that exam questions I think so so I need to learn how I can do it program if someone help me and thank you so much Question:Train stations often provide ticket machines that print a ticket when a customer …

Member Avatar for Eric Cute
0
101
Member Avatar for bizzystar4ever

hi I need to this program I didn't understand this program and I couldn't anywhere someone is help me A Salesperson at a company receives a set salary each month plus commission based on the number of products sold during the month Create a Payroll Program that can do the …

Member Avatar for Eric Cute
0
144
Member Avatar for aligajani

Hi. I have this code but I want it to store the same data and function using objects. However, I would like to also know how to get information from the objects in an ArrayList. Currently the information is stored directly without the using of objects. I also want to …

Member Avatar for Eric Cute
0
167
Member Avatar for Mike516

Can anyone please give me an example of passing information FROM java to PHP and vise versa.

Member Avatar for jkon
0
145
Member Avatar for renovatiotr

I have a HW. It must be sent to the teacher in 12 hours. Any help would be great. I need to do this using JSplitPane: [URL="http://javafaq.nu/free-swing-book/Chapter8_files/image002.gif"]http://javafaq.nu/free-swing-book/Chapter8_files/image002.gif[/URL] There are moving balls in seperate panels(not imaages). Smaller the panel's area, faster the balls move. I did the JSplitPane and Panels but …

0
57
Member Avatar for cielle

Hi all, I am trying to apply Hamming window on my lengthy sound data soundSample[1000] with window length 100. Then proceed with FFT. And i found that java does have the package for Hamming window and FFT. As below, [url]http://code.compartmental.net/minim/javadoc/ddf/minim/analysis/FFT.html[/url] [url]http://marf.sourceforge.net/api/marf/math/Algorithms.Hamming.html[/url] But i hardly find an example that illustrate how …

Member Avatar for quuba
0
1K
Member Avatar for bibiki

I am working on this exercise: Write an application that asks its user to type a complete sentence on one line. The application then displays in the console window the words in the sentence, one word per line, less any punctuation. I have the following code: [CODE] import javax.swing.*; import …

Member Avatar for bibiki
0
145
Member Avatar for axa121

Hi, I've decided to make a hangman game. I made this in Python last year, however I'm a little bit stick in Java, since I'm quite new to as well as Swing. Anyway, the problem I'm having is that my while loop keeps terminating if I enter 1 incorrect letter, …

Member Avatar for axa121
0
231
Member Avatar for bleedi

Hey, I'm trying to get a random number for a small game which lights up random lights. I can't figure out a way to get the number random. I've tried seeding the Random() function with current time, but it's not working. It always lights up the third light. Here's my …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for daudiam

Consider the following code : [CODE]class R2<E> { E a; E get() { return a; } void set(E a) { this.a=a; } } class R3 { void doit(R2 a) // (1) { a.set(new Integer(5)); } }[/CODE] When I compile the file containing class R3, it rightly gives an unchecked warning …

Member Avatar for daudiam
0
162
Member Avatar for sthanner
Member Avatar for Akill10
0
54
Member Avatar for emilybose

Hi, I want to read an xml file thru java..all examples in google r of same type.... my xml file shows <?xml version="1.0" encoding="UTF-8" ?> - <checkstyle version="5.3"> - <file name="C:\Checkstyle\Junit\LLU.java"> <error line="2" column="8" severity="error" message="Unused import - java.io.FileWriter." source="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck" /> <error line="3" column="8" severity="error" message="Unused import - java.io.IOException." source="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck" …

0
33
Member Avatar for virendra_sharma

Hi frnds, i want to display profile from linkedin like , name , address , company and pic in my application. as "xobni" use to display . can anyone plz help me out for to do this.

Member Avatar for jmaat7
0
79
Member Avatar for softswing

Hai , How can i make beep sound in java,with out sound card, is it possible? how can i implement this, please help me.

Member Avatar for JSPMA1988
0
91
Member Avatar for WolfShield

Hello everyone, I have just recently started learning Java (previous Python programmer) and I am making a text based calculator program. I have had no problems with programming it so far, and I just need help with one part of perfecting it. [code=java] package calculator; import java.util.Scanner; public class Main …

Member Avatar for WolfShield
0
274
Member Avatar for aligajani

I want to inquire what is the major difference between the usage of ArrayList and Array in the Java programming language. I would appreciate good responses and would be enthralled to continue the discussion further upon interest. Regards, Ali

Member Avatar for dheeraj208
0
187

The End.