35,619 Topics

Member Avatar for
Member Avatar for Webbsta

Is there a way i can run a single void from my java class when using a shell/batch command or does it only run the main void when using a command such as "java MYCLASS" I have tried commands such as "java MYCLASS.VOID" or anything similar but im not sure …

Member Avatar for Webbsta
0
111
Member Avatar for eleonora

Hey i want to create a method which counts the nodes from a binary tree that have exactly one child i did that but it returns error :S Can anyone tell me what's going wrong ?? Thanks in advance [CODE] //Count nodes from BinaryTree1 that have exactly one child public …

Member Avatar for eleonora
0
99
Member Avatar for dragon99x

I had this crazy idea of creating a media player using java that would stream files from from my desktop computer, which I would set up some sort of server app for, and talk to a portable client app that I could download on any of the other computers on …

Member Avatar for Phaelax
-2
533
Member Avatar for manushetty_2005

please help us in getting information regarding working of internet browsers(in general IE or Mozilla etc).... API's involved.. we want to develop a server tool that monitors and logs the users internet activity such as sites visited, on client machines in LAN.

Member Avatar for jwenting
0
68
Member Avatar for ashkash

I need to get the current date in the format MM/DD/YYYY and compare it to another string in the same format to see if the current date is greater than the string date. What is the best way of doing this? thanks.

Member Avatar for Ezzaral
0
104
Member Avatar for Webbsta

I'm getting further and further to figuring out how my java program can read from my console application written in vb.net, i have some of my class here that i found on a site: This is mainly to do with reading numbers from input but il change it later. [CODE=java] …

Member Avatar for Webbsta
0
306
Member Avatar for eleonora

Hey, I have to create a program which will accept two lists of words and place the contents of the first list to an [B]unordered [/B] array, to an ordered tree and to a hashtable. then each word in the 2nd list shall be checked whether it is contained in …

Member Avatar for Ezzaral
0
86
Member Avatar for new_2_java

Hi all, I want to make an executable JAR file, and am facing some problems. Here's what I have tried: My program is in the following folder C:\extract\ExportTest.class I created a Manifest (Manifest.mf) file in the same directory and the content of it is: [code] Main-Class: ExportTest [/code] There's also …

Member Avatar for majestic0110
0
115
Member Avatar for shankarjadhav

Guys, How to check for java installation in windows, i want some code/pseudo code/algorithm.. Help me out.....

Member Avatar for Ezzaral
0
527
Member Avatar for jessxe02
Member Avatar for Ezzaral
0
73
Member Avatar for sourcerer

Can you please help me to write code on SRTF (Shortest Remaining Time First) on my O.S. subject! The requirements are: Enter No. of Jobs, Arrival Time and the Burst time! PLZ HELP ME!

Member Avatar for javaAddict
0
84
Member Avatar for paurik

i devlop a intranet application in java. can any one give me idea about how i show runnig process on remote machine using java programme. trhough wmi application i get information in vb,c# and c++ language. but i cannot find any solution in java.

Member Avatar for jwenting
0
72
Member Avatar for hidash_in

i want to move a single file from a folder. i tried my level best. but the all the files from the folder is moving. pls anyone is there to solve my problem.

Member Avatar for masijade
0
296
Member Avatar for shaikh_mshariq

Hi, I am new in programming snmp using java. I found snmp4j api for java to snmp programming but it does not contain any example to create agent and deploy it. Any one have solution for my problem. One more question using snmp can we deploy snmp agent remotely ? …

Member Avatar for shaikh_mshariq
0
95
Member Avatar for Ankita B

Hi, My java file is compilin fine but wont execute. its a simple hello application.i have set classpath as .;C:\Program Files\Apache Group\Tomcat 4.1\webapps\myfolder\WEB-INF\classes;(even if i remove the semicolon at end it doesnt work) and path as C:\j2sdk1.4.1_01\bin This is where my class and jdk are saved. i've tried all the …

Member Avatar for masijade
0
58
Member Avatar for raheleh

How can hide the menu bar ,address bar with javascript in ie7.i have the code and used in ie6 but it doesn't work in ie7

Member Avatar for masijade
0
105
Member Avatar for ashkash

I have data in a list and each entry in the list is seperated as follows: XXXXX,XX/XX/XXXX Where the X represents a number. The data after the comma is supposed to be a date and could possibly be null. I need to take the first part of the data before …

Member Avatar for javaAddict
0
114
Member Avatar for eddy556

I've got this code which seems right but I keep getting: An error occurred at line: 19 in the jsp file: /viewFAQ.jsp Syntax error, insert "AssignmentOperator Expression" to complete Assignment where the lines involved are: [code] 16: String key = request.getParameter("edit"); 17: ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE …

Member Avatar for peter_budo
0
85
Member Avatar for mahendrazod

Hi friends, I am trying to develop the smiley installer which will install the smiley/emoticons on messengers installed on your system. Can anyone help me for below. 1) which language/technology should I use for it? 2) Give outline/algorithm ? Thanks in advance. Regards, mahendra

Member Avatar for Phaelax
0
60
Member Avatar for piers

right I am trying to practice with my programming taking my lectures advice and breaking the problem down into steps, then when I code, code a small amount, compile it check it works and then code the next bit. So I have an exercise I am trying out. Part of …

Member Avatar for Ezzaral
0
142
Member Avatar for new_2_java

Hi all, I want to run an OS command from my Java code. Basically I want to delete an unknown number of file from a particular directory from my Java code (in windows). But the way "del *.*" commnad works it prompts you whether you want to delete it or …

Member Avatar for new_2_java
0
126
Member Avatar for new_2_java

Hi all, I want to read a properties file from the same directory as my program, e.g. my program is in C:\WorkSpage\Myprogram.java and I have a properties file called index.properties how can I read the file, without specifying a path? I have tried the following but it doesn't read the …

Member Avatar for new_2_java
0
150
Member Avatar for babyfrostie
Member Avatar for soccerrm1

I've recently been trying to download jGrasp on my home computer because this is the program I am using at school to start to learn Java. I keep receiving the same error message when I try to compile a simple "hello world" program. "----jGRASP wedge2 error: command "javac" not found." …

Member Avatar for javaAddict
0
213
Member Avatar for maulee

hello friends,I want to use simple Java Beans in Struts Architecture..can we use simple beans with struts?

Member Avatar for maulee
0
51
Member Avatar for Alphard

import java.util.Scanner; public class TuringMachine { private static char[] array_in; private static int dir=0; private static int state=0; private static int i=0, i_clone; public static void main(String[] args) { Scanner read = new Scanner(System.in); do { System.out.print("Input Number: "); String str = read.next(); array_in = str.toCharArray(); if(!isNotValid()) halt(0); else break; …

0
68
Member Avatar for arkaprava

Since Input of ENTITY and of it's attribute is ok I am trying to op the value of the entity and it's attribute details so my modified code abt ENTITY is: package datamodel; import java.io.*; import java.util.*; public class ENTITY{ String entity_name; int no_of_attribute; int no_of_entity; attribute attr1; public ENTITY(String …

Member Avatar for PoovenM
0
176
Member Avatar for eddy556

Please take a lot at this. Tomcat is reporting the variable editQuestion cannot be resolved. [code] <% String key = request.getParameter("edit"); ResultSet columns1 = statement.executeQuery("SELECT * FROM Questions WHERE ID ="+ key +""); while(columns1.next()) { String editid = columns1.getString("ID"); String editQuestion = columns1.getString("Question"); String editAnswer = columns1.getString("Answer"); String editUpdated = …

Member Avatar for eddy556
0
76
Member Avatar for Anupkumar

Hi, I am planning to take Sun Certified Java Associate exam. Please give me some tips regarding how to start. Also if any of you have passed SCJA exam please provide some piece of advice. Thank you.

Member Avatar for jwenting
0
71
Member Avatar for fufu123

i have to write a program that has to subtract the purchase price from 100 and then determine the number of qtr,dms,nkls,pns.. when i run it my results are in decimal am not sure how to change it..any advice thanks alot.. import java.util.Scanner; public class Subtract { public static void …

Member Avatar for Ezzaral
0
234

The End.