32,204 Topics

Member Avatar for
Member Avatar for srthomso

here's the code: string reply; reply = getLineFromUser(); //assume this function works correctly if(reply == "JAVA"){ System.out.println("OK to continue"); } else { System.out.println("Error - try again!"); } i cant seem to see where i'm going wrong, thus cant get a correct version to work. I need it to keep repeating …

Member Avatar for srthomso
0
136
Member Avatar for steventhms

The following code will not compile n i'm a little stuck as to why - public class Question8{ static final int ROW_SIZE = 10; static final int COL_SIZE; public static void main(String[] args){ COL_SIZE = 10; ROW_SIZE = ROW_SIZE + 10; } }

Member Avatar for scordle725
1
100
Member Avatar for smartdetect

Ok...can anybody provide me with a sample code for the following: Its in java .It enables the server to detect the presence or absence of a keyboard or a hdd on a client m/c on a lan.The server is a winNT server. Clients run WinXP. If not the code can …

Member Avatar for nanosani
0
116
Member Avatar for smartdetect

Which funcn of java do iuse if i want to communicate with a certain hardware and confirm its presence or absence:?::?::?:

Member Avatar for Iron_Cross
0
102
Member Avatar for sullivan745

Can't get some applets to load and run on my P.C. I have Java Runtime 1.4.2_05 and Virtual Machine 1.4.2_05b04. In Internet Options, Advanced Tab, I have Java (Sun) checked. Under the Connection Tab, LAN Setting, I have the Automatically Detect Setting checked. In the Java Plug-In Control Panel,Brouse Tab, …

Member Avatar for sullivan745
0
134
Member Avatar for bobinson

Pls help out,What about a JAVA program that could prepare A time-table,is it possible?I know its but I have not been able to figure out how. Bobinson.

Member Avatar for nanosani
0
85
Member Avatar for Bill T

Hi Again, Im writing a program of a version of stop watch that uses a varible instance also callcount must be used and start at 10 everytime called decreases by one until zero then messgae displayed. Can someone help me please!!!!

Member Avatar for nanosani
0
97
Member Avatar for arijit

I am implementing a project on Online book shoping system using JAVA & XML. But I am finding it very difficult to impliment it...My being new to Java is an added woe :cry: Plz can anyone help me...suggestions , codes ..anything...

Member Avatar for nanosani
0
134
Member Avatar for Elektro

hey everyone :confused: i have a new java task comming up and it involves making a game that impliments buttons. for this task i have started to build a golf game but everything i do seems to not work i keep getting stuc. bellow is a copy of my task. …

Member Avatar for nanosani
0
158
Member Avatar for redDevils
Member Avatar for rishiraj_bayerd

Hi all, I want to know how java connected to a Oracle database. Please reply. regards Rishi.

Member Avatar for nanosani
0
79
Member Avatar for branden1457

It worked before i added in the other 13 lines, but now it doesn't want to calculate. <html> <head> </head> <body bgcolor="#000000" text="#FFFF00"> <script language="JavaScript"><!-- function cent(amount) { // returns the amount in the .99 format return (amount == Math.floor(amount)) ? amount + '.00' : ( (amount*10 == Math.floor(amount*10)) ? …

Member Avatar for Iron_Cross
0
83
Member Avatar for Vcrossley

Can someone help me to get this code to run. What am I missing. Any help is greatly appreciated. import java.io.*; public class Quiz { public static void main(String args[]) { int correctCounter; InputStreamReader reader; BufferedReader buffer; keyboard = new BufferedReader (new InputStreamReader (System.in)); } String seekResponse; System.out.println("Welcome to Hoffman …

Member Avatar for Vcrossley
0
134
Member Avatar for Dysall75

Javascript Problems On Win98 I am running Win98 and Microsoft Internet Explorer 6 SP1. Recently, I am having a problem with Java and my search window. Whenever I click search, nothing comes up on the search panel. I have not changed any of my setting in IE, but it will …

0
147
Member Avatar for aperez

used following in MS-DOSS command window public class Welcome1 { /*method*/ public static void main( String args []) { System.out.println( "Welcome to Java Programming!" ); }/*end main*/ }/*end class Welcome1*/ It was taken as an elementry example of a Jova pgm. I saved it as Welcome1.java and used the MS-DOS …

Member Avatar for Iron_Cross
0
123
Member Avatar for Hjays

write and test a class that can be used to create and object whose instance string variable can be initialised to a string constant such as: "I fined that the harder I work the more luck I seem to have" the class need to provide the following methods A method …

Member Avatar for Iron_Cross
0
171
Member Avatar for macca1979

Hey there, First off I'm really new to Java so please bear with me. I need to translate a line of text from one form to another. An example line segment has the following format: " step(sent(1,A,B,vars(Na,Rv,ped(pk(B),cat(N a,A)))))" This means that at step 1, A sends to B that which …

Member Avatar for Iron_Cross
0
192
Member Avatar for rita161

hi!!!!! i need help to improve my java knowledge.. im very weak in this programming subject n this is one of my important subjects tht im learning in college right now. please advice me or show me a way to start from scratch. thank u!!!! -rita161-

Member Avatar for rickste_r
0
102
Member Avatar for Elektro

hey anyone have any good ideas for a simple java program game. thankyou

Member Avatar for Iron_Cross
0
103
Member Avatar for death1kila

for some reason all sudden eney thing with javascript:nextpage() or eney javascript link doesnt work ever thing i do based on that like running msn sites my website dcclan20 playing games on msn if eney one can help i really like that alot before i throw this pc out the …

Member Avatar for death1kila
0
50
Member Avatar for shantuli

hello everyone, can anyone please help me to solv the following problem. Write a menu-based program with the following opetions : 1 Addition 2 Subtraction 3 Multiplication 4 Division 5 Exit take two numbers from the user and run the chosen operations on them. thank you, regards, shantuli

Member Avatar for shantuli
0
134
Member Avatar for nanosani

If I retrieve memory from freeMemory() method .... which memory is returned ... the free ram or the memory available to jvm. same is the question for totalMemory(). Thanks.

Member Avatar for rickste_r
0
130
Member Avatar for aruna

helloo... I'm going my Mtech 2nd course..in which we have 1 year proj MY research problem is -to design an interface to optimize the search to search engines(ex.Google) . My approach is .....When we type keywords in the browsers of search engines..then instead of only matching the keywords it should …

0
81
Member Avatar for phani.n

for my project i need a program code the problem is how to move a component which is placed on a frame by mouse motion. the component may be button or textfield which should be moverd according to mouse direction .please help with full code as i am new to …

0
53
Member Avatar for vaaseegaran

[FONT=Arial]HI, MY PROJECT IS ABOUT TO DRAW A GRAPH, WHEN WE GIVEN TWO EQUATION OF THE LINES MEANS APPLET HAVE TO FIND THE POINT OF INTERSECTION AND TO POINT THE INTERSECTION PT IN THE GRAPH [/FONT][FONT=Arial]THERE ARE THREE CASES. [/FONT] [FONT=Arial]1. INTERSECTING POINT[/FONT] [FONT=Arial]2. LINES ARE PARALLEL[/FONT] [FONT=Arial]3. IF TWO …

Member Avatar for vaaseegaran
0
96
Member Avatar for jeril842002

[COLOR=DarkGreen]i am doing a mini-project i would like to watch the behaviour of several people on net. how long they remain at a particular site how many sites do they visit and what are the sites etc can anyone help me please[/COLOR] :cry:

0
51
Member Avatar for Bill T

Can anyone help im trying to write a program that you can pick a number between 1-100 and another line which you can pick numbers from 2-100 then mutiply the end numbers you pick and get a answer... I dont have much to go on. I really need help... more …

Member Avatar for rickste_r
0
135
Member Avatar for shantuli

hello everyone, i am very new in java.this is why i need some help from you.i hope you will help me by solving the following problem: write a program that simulates rooling a pair of dice. you can simulate rooling one die by choosing one of the integers 1, 2, …

Member Avatar for rickste_r
0
844
Member Avatar for Elektro

Hello, I am fairly new to using Java, and something I wish to do is create a Java program to calculate and display the distance between pairs of (x,y) points supplied from a text file. I'm using xCode on Mac OS X, and I've got a file named "data.txt" in …

Member Avatar for rickste_r
0
110
Member Avatar for mik yaf

hey there, i have been trying for sometime now to create a simply spellchecker using probabilities but i can't seem to get my head around it. i have a program which will read in a line of text and if a word is spelt wrong it will give you the …

0
68

The End.