35,617 Topics
![]() | |
does java have a ' system ("PAUSE") ' like c++....if so what is the syntax to do it. ty | |
in the past i have been able to run dos commands thru C++... for example: system("cls") in C++ used to clear the screen... does anyone know if this can be done in java? | |
I have a program that uses blocking/non-blocking direct and indirect communication. I need to have it randomly choose whether or not it should do the blocking or non-blocking method and I do not know how. Does anyone have any suggestions? Thank you. | |
Hi all, This program below sorts arrays of integers. It counts the number of times it compares pieces of data to do the sort.With the array size set at 4 it always takes 9 comparisons. Does neone know how i can Modify it to read in a series of four … | |
Does anyone know how to have a thread randomly decide if it wants to do blocking or non-blocking mode with direct communication? I am using a bounded buffer with size of 5. I have the non-blocking mode right but I am not sure how exactly to change it to accommodate … | |
Hi, I have a fileoutput method which when called, should output the array into a text file. The array is stored in the same public class as the fileoutput method and I am using a constructor for the array, which is in the Cd class. I would like to know … | |
Greetings all...long time reader, first time poster. I have 2 java files, one that contains methods that do conversions, the other contains a loop that allows a user to select "what" they want to convert. The program works, but one of the conversions is to multiply by 0.0092. When I … | |
Hey everyone. I was just wondering what people think is the best environment for editing and compiling code. Currently, I use JCreator. | |
Hey Everybody, I'm making a Java applet and trying to post it online. Whenever I open the HTML page where the applet is, i get an error message. Here's the website with the applet on it: [URL=http://www.inquirybio.com/quiz.html]Applet Website Link[/URL] Thanks in advanced, C++ | |
What I'm trying to do is format input from a text area so that it is all uppercase letters and numbers, eliminating all punctuatoin and whitespace. I want to use a method format() to loop through all the characters in the text and use a switch statement to determine whether … | |
recently, i bought a textbook call "Objects first with java" for self study. at the chapter 7, design a "Command Line Game" and a exercise ask me to put more functions in the game, as i do so i encounter many problems, and one of the problem as sohowing below, … | |
This is a piece of work i need to complete for my Object Orientated programming module at university. The task, (User Input) Order Number, Name, Address line 1 and Address line 2 and select either Computer and/or printer check box. N.B. These FIVE fields must be completed by User otherwise … | |
Hi everybody. I'm pretty new to java programming, just taking it as independent study my final year of high school, and I was looking for a little help. I was wondering if there was a way to have the program pause and wait for the user to tap any key … | |
Hi thanks for comming to this thread... can any one give me the idea how to use javax.swing.Icon interface? | |
For this program, we need to read in a file which has baseball stats. Our program reads in the dat file then parses each line in the file. The file looks like this: Joe h,o,h,s,h,o,h,h,h,o,o,o Bill s,o,o,h,h,o,s,s,o So far I'm ok with this. Here is the part that I'm struggling … | |
Ok wrote this program out, compile it it compiles, when i run it it starts off nicely, but when i enter Album Name it gives me an error. Neone know where im going wrong..... import javax.swing.*; public class CdStorage { public static void main (String[] args) { String menu_choice; int … | |
I have an assignment that I need to do that designs the necessary classes to facilitate an indirect blocking and non-blocking communication environment between threads (producers and consumers) using a bounded buffer whose size is defined at run time. I am to test the working of these classes by creating … | |
Hey everyone, Alright, my project requires that I write a program to demonstrate my understanding of class inheritance. Problem is the teacher wants us to use Java, something I have never used and the teacher did not even give us a crash course in. Right now I am trying to … | |
Hey guys and gals, an int in java is 4 bytes as we all know i bet. Trying to break my into 4 bytes : int foo = 87; bytes[4] mybyte = new bytes[4]; the problem is i don't really know how to break my int into single bytes i … | |
How would you put a scrolling message on your application with a seperate thread, sort of like an advertisment? | |
Hey all. I am attempting to build a java applet with just a textfield and a button for a search on a web site. When the button is pushed, I have it set up to look at what the user typed into the textfield and then match it to either … | |
hi. I read a .txt file and i want to put the values from it , to an array. I have dificulties. here is the code i am using: [CODE] public void read(File afile) { FileInputStream fInpStr = null; BufferedReader bRead = null; StringTokenizer strTok = null; String line = … | |
I was wondering if anybody had any cool projects ideas. Please post them. Thanx, C++ | |
I at least have the program working correctly thanks to the awesome help from various boards and people I work with. However, now I want to tweak the program a little bit. I am currently using a combobox for the interest rate and term. I would like to use either … | |
This problem started happening a couple of days ago. When I'm on certain websites and launch a window (usually a java pop up), the pop up window appears...begins to load for a second and then disappears completely. Also, the original Website that I launched from disappears too! :eek: I'm running … | |
Hi all, Ok i've started doing a mini project about a CD collection database. i got the program working ata stage where you can enter a single entry and the record is printed to the screen, the problem im having is i can not seem to modify the program to … | |
[size=2]Hi I just started a new website kind of lame but that will be picked up soon.Ok here is the question did not know where to post it so I am posting it here.It is this: I am trying to make a users immmm how to called it comment box.You … | |
I'm supposed to write a loop to loop through the days, the write a switch statement for the verses. The program should print out just like the song goes. For example: On the 1st day of xmas my true love gave to me, a partidge in a pear tree On … | |
Hi, I am making a task-manager like program and i wanted to create a pie chart referring to the free/max memory (like the pie chart u see if you right click "My Computer.") Can anybody please tell me how to do this (oh yeah, it's an application, not an applet) … | |
Runescape is the absolute BEST internet game. Its a Java game too. Java, you should be proud. *sniff* Anyways, the game is free, but its $5 a month for a premium account. You start out level 3 on a tutorial. Figure it out :) [URL=http://www.runescape.com]Go to this page, then click … |
The End.