35,618 Topics

Member Avatar for
Member Avatar for theQube

Is it worth going out and using a program like JCreator or something like that compared to good-old notepad? They all should compile the same code, no? Ian

Member Avatar for zeroliken
0
271
Member Avatar for puppycrazy

my codes occur some problem inside.whn i answered 'N' to the last question(DO YOU WISH TO CONTINUE?(Y/N)), the program will repeat run again, but i cnt enter student name!anyone can help me solve the problem>? [CODE] import java.util.Scanner; public class homewok{ public static void main(String args[]){ Scanner xx = new …

Member Avatar for puppycrazy
0
352
Member Avatar for deanus

Hi, I've just learned that Java's 'protected' access specifier has a different effect than that in C++. So is there a way to make a member of a base class visible to its inheritors but not globally? Dean

Member Avatar for deanus
0
106
Member Avatar for peter20

Hi, I don't know anything about generics interface in java but I would like to make threads with name qorker (qorker<Someqork> qorker = new Someqorkqorker<Someqork>()) which has three states INIT, WORKING and END. And I want this thread to call a web service like [URL="http://www.w3schools.com/webservices/tempconvert.asmx"]Web Service/tempconvert.asmx[/URL] I don't know where …

Member Avatar for peter20
0
179
Member Avatar for rahul_galgali

Hi I am doing java project for Image Hiding.Basically I am vc++ programme I have habit of making Dailog using visual studio where i can put button anywhere i want using mouse,but while i am trying same thing using java(using eclipse) it is not easy to move button,can u help …

Member Avatar for NormR1
0
109
Member Avatar for winecoding

I am trying to use a Weka method, crossValidateModel, which is posted in the last. It looks like that the fifth parameter is referred to as varargs parameter. I tried the example usage given in Weka page, such as [CODE]eval.crossValidateModel(cls, data, folds, rand);[/CODE] It works just fine on one system,(eclipse+Ubuntu); …

Member Avatar for ~s.o.s~
0
212
Member Avatar for SasseMan

Hi! I'm writing a unit test where arbitrary objects have to be created without knowing anything about the objects (with some exceptions). I use reflection to create objects and set their fields to random values etc... I'm almost there but I've come to an issue I can't find a solution …

Member Avatar for SasseMan
0
186
Member Avatar for softswing

Hi Friends, How to create properties files for russian launguage in swing application, is ther any code format? kindly help me in this problem.

Member Avatar for stultuske
0
150
Member Avatar for sasidharnet

Classes Like Threads,Streams,Runtime and some of awt not serializable. Please tell me the Reason. This is asked in my interview. I said, classes which have native code will not be serializable. Is it correct? Please give detail note.

Member Avatar for stultuske
0
506
Member Avatar for vijaykavin10

hello all I need a clarification about this topic...In j2EE application architecture is the key So i need to know about MVC architecture or JWMS architecture which one is suits good Thanks...

0
66
Member Avatar for jain1.anuj
Member Avatar for _neo_

Actually I'm trying to open serial port to send logging data in j2me. When I connect my phone via usb cable to pc my code works correctly. But when I start app without usb cable connecting to phone it is hanging up. [CODE]private static void sendToSerial(String msg) { try { …

Member Avatar for _neo_
0
324
Member Avatar for _neo_

I have test midlet which requests my location via JSR-179 Location API. I use Nokia 6275i. Its java: MIDP-2.0, GPS enabled (I see blue icon on top of my mobile device) When I run this app I got the following error: "java.lang.securityexception: Positioning Log denied Location access." Google do not …

Member Avatar for _neo_
0
265
Member Avatar for mehnihma

I have problem formating this code to displey 2 decimal points [CODE] public String toString() { return super.toString() + "\n\tYear Level:\t" + getYearLevel() + "\n\tTuition:\t$" + "%1$.2f",calcTuition(); } [/CODE] calcTuition is type double how can I do this? Thanks

Member Avatar for Ezzaral
0
179
Member Avatar for Sherif1410

Hi, I wrote the following Java Program. When I enter Arabic Course name, it displays non Arabic characters. Can you help me to read and write Arabic Character. Thanks. [code]package p91; import java.util.Scanner; class GradeBook { public void displayMessage(String courseName) { System.out.printf("Wellcome to the Grade Book Dr. Sherif! for \n%s!\n", …

Member Avatar for ~s.o.s~
0
8K
Member Avatar for Feriscool

I'm looking for some sort of collaboration software/tool where several developers can work on the same project, and edit the same files at the same time without conflict. Does anyone know of any? :icon_cheesygrin:

Member Avatar for JamesCherrill
0
87
Member Avatar for moonL!ght

hi there, i want to make an application in which that if we select a shape to be drawn and the we draged the mouse in the panel aseries of the sames shape will be drawn my prog in the other hand draw the shape and if i drage the …

Member Avatar for moonL!ght
0
394
Member Avatar for emorjon2

Hi all! I am developing a java-game where you are building with balls. It will connect to a server to create a huge map available for everybody playing this game.:) For this, I need a PHP-file who will append some urldata into the file data.txt, for adding a ball into …

0
120
Member Avatar for warlord902

I want to setup Apache http server on my ubuntu machine, but as I am not good with linux, can't understand how to do that. Latest version is 2.2.21 I was trying to install that. There is a binary for window systems, I successfully installed and set it up on …

Member Avatar for peter_budo
0
136
Member Avatar for kyriacos1986

I have been asked to design a method splitMid that can be added to the LinkedList<E> class. This method should have the following header: public void splitMid(LinkedList<E> sublist) and should split the given list into two sub-lists of (almost) equal sizes. Suppose myList points to the with elements 34,65,27,89 and …

Member Avatar for NormR1
0
6K
Member Avatar for Majestics

Which two code fragments correctly create and initialize a static array of int elements? (Choose two.) A. static final int[] a = { 100,200 }; B. static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; } C. static final int[] a = new int[2]{ 100,200 }; D. static final …

Member Avatar for Majestics
0
248
Member Avatar for Lunar Savage

Okay, so I've been working on this Inventory Program non-stop all day long. I've made massive changes to it several times and feel like I'm banging my head against the wall. And finally, I managed to make it do everything I need it to do like cycle through an inventory …

Member Avatar for Lunar Savage
0
192
Member Avatar for moonL!ght

hi im implimenting a gui applicaion so i have a list of shapes =>array of objects and i want to select a shape from the list im stuck in implimenting the listener class how do i know the selected object that is in my list it wont work with me …

Member Avatar for moonL!ght
0
110
Member Avatar for Dmiller071

My main problem: In my JApplet, my actionPerformed method should open a website when a certain item is selected in a JComboBox. The problem, is that the desktop.browse(uri); statement will not work. I've tried this outside of an applet in just a small program and it ran fine. So there's …

Member Avatar for Dmiller071
0
189
Member Avatar for jhellr13

Hey guys, Working on a project to calculate the standard deviation of an array. Instructions call for a program that will allow the user to enter a list of test scores with 999 as a sentinel value. Then a method calcStDev is invoked with the scores array as a parameter …

Member Avatar for NormR1
0
363
Member Avatar for Isaac93

Hi everyone, I have an assignment where I have to create a cipher system. The problem is that all cipher systems' classes and their respective keys have to be managed by a module based on the façade design pattern and I have no idea how to do it? Please I …

Member Avatar for NormR1
0
94
Member Avatar for karthik.datt

I need to split the below string: line.long 0x0 " MIDR, Identity Code Register" I have used space , as the delimiters. the code should give output in such a way that Command Name: line Size: long Offset : 0x0 short name: MIDR Long name=Identity code register. The problem is …

Member Avatar for stultuske
0
141
Member Avatar for programing

in this code i have logical error its give me wrong output [CODE]import java.util.Scanner; public class OneFile { static final int MAX = 100; static final int READ = 10, WRITE = 11, LOAD = 20, STORE = 21; static final int ADD = 30, SUBTRACT = 31, MULTIPLY = …

Member Avatar for NormR1
0
177
Member Avatar for jhellr13

I have to do this project for school that finds the Standard Deviation. The first part of it, which has to build an array from scanner with a while loop, has been killing me today. The problem is that my teacher wants a program that will allow a user to …

Member Avatar for NormR1
0
1K
Member Avatar for softDeveloper

Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next …

Member Avatar for softDeveloper
0
198

The End.