32,204 Topics
| |
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 … | |
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; } } | |
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 … | |
Which funcn of java do iuse if i want to communicate with a certain hardware and confirm its presence or absence:?::?::?: | |
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, … | |
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. | |
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!!!! | |
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... | |
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. … | |
need a sample code for text-to-braille conversion | |
Hi all, I want to know how java connected to a Oracle database. Please reply. regards Rishi. | |
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)) ? … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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- | |
hey anyone have any good ideas for a simple java program game. thankyou | |
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 … | |
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 | |
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. | |
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 … | |
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 … | |
[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 … | |
[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: | |
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 … | |
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, … | |
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 … | |
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 … |
The End.