Re:
Hi, I'm new to this so not sure if I'm posting this in the right place. I'm in my first semester of college and I'm taking an IT elective: Software Design. It doesn't involve any special programming language, it's simple, basic object-oriented design class. We were just introduced to the … |
|
Re:
hi could anyone tell me how to get bit pattern of a negetive number. For example bit pattern of -1357 is: 11111111111111111111101010110011 and bit pattern of 1357 is: 00000000000000000000010101001101 but how???? |
|
Re:
THis is program in java for First 100 Prime Number as "count<100" . public class PrimeNumber { public static void main(String args[]) { int num=4; int count=0; System.out.println("First 100 Prime Number is: "); System.out.println("1"); System.out.println("2"); System.out.println("3"); while(count<100) { num++; if(num%2!=0) { int dv=3; while((num%dv!=0)&&(dv<=((num-1)/2))) { dv++; } if(num%dv!=0) { count++; … |
|
Hey Everyone... Not quite sure how it works on these forums as this is my first post, but I am looking to separate elements of lines printed to a text file in real-time for a log parser. An example of the text output is: [INDENT][CHAT WINDOW TEXT] [Sun Nov 29 … |
|
Re:
Hello, im Ant. Forum looks really good. Im currently in the very early stages of learning Java, i have a few books and am doing online tutorials etc so looks like i will be using this place and searching the forums loads in the near future. At the moment im … |
|
Is this possible to do? I am looking to parse some data out of a file and based on the results of this take names found in the file and create objects out of them. for example... [code] //you have parsed the name Bob out of a file and it … |
|
Is it possible to read a file as lines are written to it but not lose your location in the file? As in there is a program that will write lines of text to a file until it reaches 2.4MB. I want to read this file as these lines of … |
|
Hey guys, so i've posted here before about regex, and i was told that some of you may be able to check my regexes for errors after i have created them. I have one that looks like it should work to me, but it absolutely will not. [code] public static … |
|
Re:
Hey I m not able to understand the topics such as Abstract classes,annotations. Plz help me out. And I also want to know how can i practice online java programs. I m not able to find some specific practice problems.:( |
|
Re:
i want to add condition if >100 is error but when im try to add the condition the program is running but not what i want... can somebody tell me what should i do..tq import java.util.*; public class test_scores { public static void main(String args[]) { Scanner input = new … |
|
Re:
Hi I would like to know what operator to use for a number in between my input. Is it something like this? If I input the number between 116 and 200. [CODE]else if (Earn>=116)&&(Earn <=200)[/CODE] |
|
Re:
I'm using Eclipse and even though I've done more challenging things than this I keep getting stuck no matter how hard I hammer away at it. This is a package, so the end of the first part (Driver Class?) is really what I'm having trouble with. Comments are included in … |
|
Re:
[B]Background:[/B] Hey guys I'm making the first part of a greater program. We are instructed to create a program that stores a list of all our CD's. It has to be created in 3 different classes... that obviously link together. [B]My Question[/B] How do I create an array that is … |
|
Re:
Hi, In my program, a text file is read in, and certain parts of it are written to a XML file. There are special characters(e.g. &) that need to be escaped, so I need to escape all of them. How can I manage to do this? |
|
Re:
Hi, I'm trying to find a suitable language for developing an RIA to be able to tune an instrument via a website. I.E. what I need is: 1) Live input from a microphone 2) Get the volume level of different frequencies 3) Find the average or loudest frequency 4) Output … |
|
Re:
I need help on my project. This is what I have so far: [CODE]import javax.swing.JOptionPane; public class Convert{ public static void main(String[] args){ String choice = ""; do { choice = JOptionPane.showInputDialog(null, "Would you like to enter a temperature?"); } while(choice.equals("No") | choice.equals("no") | choice.equals("N") | choice.equals("n"));{ choice = JOptionPane.showInputDialog(null, … |
|
Re:
hey i'm trying to do my homework for a computer science class, and im a bit stuck. When i run the program, the terminal window doesn't even show up, can anyone help me please. Thanks in advance. class: [CODE]public class Grid { public Grid() { rows = 10; columns = … |
|
Hey everyone- my name is TJ, and I am currently taking an AP Computer Science class in my high school. We are learning java, so most if not all of my quetions will be java related. Right now, I am undertaking a project for an online gaming community I participate … |
|
Re:
I am writing an application for class. The user is prompted to enter a number, then select what to do what that number. I'm using JPanel and JOptionpane for input and console for output. The application is supposed to: prompt for input, ask for what to do with the input, … |
|
Re:
How can I get this output by running a for loop the logic is that after the multiples of 2, "This" will b printed, after the multiples of 3, "Is" will b printed and after the multiples of 5, "Java" will b printed. pls help with code 1 2 This … |
0 Reputation Points
~10.1K People Reached
Favorite Forums