32,199 Topics
| |
Hi! I read the jmf tutorial for how to capture an audio. I tried to run there code in netbeans but it din't work . This vector: Vector deviceList = CaptureDeviceManager.getDeviceList(new AudioFormat(AudioFormat.LINEAR, 44100, 16, 2)); was null. This means that it didn't find a device to record with? I used … | |
Hi, I have downloaded j2ee server and compiled the jms programs successfully. But,i cannot able to run the j2ee server. My directory Structure: j2sdkee1.3.1/bin [root@localhost bin]# ll total 48 -rwxr-xr-x 1 uucp 143 345 2002-01-17 17:18 cleanup -rwxr-xr-x 1 uucp 143 1715 2002-01-17 17:18 cloudscape -rwxr-xr-x 1 uucp 143 463 … | |
I am a student looking to create a functional ftp client software from scratch with java for my licence project. I am looking for: any usefull books regardind the subject of file transfer, sugestions on features that I could implement to make the project more unique and usefull, tutorials and … | |
I am not getting a efficient way to solve the problem, the time taken i more than 5 sec while the time alloted for this problem is 1 sec .so please help me .please give me a answer using collections. ========== EASY - 2 ========== The great pirate Khurafati and … | |
Hi I want to capture the output into java varible of one of the command line statement. The command line statement is as below: [COLOR="Green"][B]..\_jvm\bin\java.exe -cp ..\DataLoader.jar com.salesforce.lexiloader.security.EncryptionUtil <option> <password>[/B][/COLOR] Infact this is the command line utility thru which I encrypte my password, if i do manually. [B]But I want … | |
May I know how to split a word into individual characters (letters)? For example, AUGC into A U G C | |
[CODE] coordinates2[i][0]= Double.parseDouble(text2.substring(30,38));//X coordinates2[i][1]= Double.parseDouble(text2.substring(38,46));//Y coordinates2[i][2]= Double.parseDouble(text2.substring(46,56));//Z [/CODE] Can I do this: coordinates2[i][j]= coordinates2[i][0]+ coordinates2[i][1]+ coordinates2[i][2]; Is it possible to add them all together ? | |
I am doing a payroll program that requires a sentinel value. I cant seem to get it right no matter how much I try. here is my code so far: //Filename: Payroll3.java //Description: Payroll calculator with sentinel loop //Author Name: Chris Russo //Date: 08/15/2010 import java.util.Scanner; public class Payroll3New { … | |
I have 2 arrays that are in a while loop each. I have declared the array ouside of the main, declaring it 'public static'. I want to use the values store in the array outside of the while loop, but I can't seem to do it. May I know how … | |
hi. could some one help me. I am trying to read the tokens into the array but the datatypes are incompatible. what should i do to cast it into the same thing. the numbers from my text file are actually floats. But i can make do with just the integers … | |
Hi, Can anyone send the download link of j2ee server. thank you, With regards, Prem | |
Hello, I am starting to learn java and I was wondering if anyone know of any resources/websites that have projects I could attempt to improve my skills and expand my java knowledge? Thanks. | |
Hello, I am having trouble with my Odd/ Even Code. Can anyone help me with this? Or has a current code? | |
[CODE] class character1{ public static void main (String args[]){ float a,b; a=Integer.parseInt (args[0]); b=(float)Math.acos(a*(180/3.14)); System.out.println (b); } }[/CODE] the above program isn't working when entering angle other than 1 , why ? | |
Hi I was wondering if someone could help me with a code for my website? Basically what I want to do is have a drop down list that is essentially a matrix in the sense that picking one option leads to another and eventually you can narrow down the results … | |
I'm trying to create a method which checks if a certain text file is empty, and if so it deletes it. However, the program seems to freeze for one reason or another when executing this part. [CODE]try { BufferedReader in = new BufferedReader(new FileReader("File List.txt")); String str; while ((str = … | |
hi, i'm wanting to do a for loop on the last line [CODE]System.out.println(host + "\t" + status);[/CODE] of this bit of code so that when i replace [CODE]String host = "server";[/CODE] with something like this: [CODE]String hostarray[] = {"pc","server","pc2","another","etc"};[/CODE] that i get output that looks like this: Server Up? pc … | |
Hello I want make java application which start running when system (OS)start anyone can tell me where i must search or a demo for that any help will be appreciated Thanks Yours Ahmed Ghazey FCI-CU-CS | |
Hi everyone, I will be really thankful if someone could help me out. I am developing a gui application ( based on java jdbc and oracle10g), where a user can enter queries retrieve data from that can perform selection projection join union. Till now I could perform only selection queries … | |
i want to develop a parallel thread based application , so which is best language for it?? | |
the few things that i cant understand are inside the code.. The code should give out the car type, model type ,serial number. and the number of cars.. [CODE]public class part5{ public static void main(String[] args) { System.out.println(Car.getCounter()); Car[] cars =new Car[5]; for (int i = 0; i < cars.length; … | |
guys, i have a project that have to implement a reservation system by using java. Is it database the only way to store the data? Is there other method beside by using database? If database is the only way to do that, can anyone tell me how to do so … | |
hello can you help me i don't know how to make this method remove(Node n),in SinglyLinkedList can anyone give a hand on this.. thank you in advance.hoping for your positive responds... [CODE] public class SinglyLinkedList { private Node head; private Node tail; private int size = 0; public Node add(Node … | |
Hi all, Static Methods : static methods can access only static variables.It cannot access instance variables. static methods can call another static methods without the objects. static methods can call instance methods using the object of the class. Instance Methods: Instance methods can access static variables also instance variables. Instacne … | |
[CODE]import java.io.*; public class DCS2{ public static void main (String [] args) throws IOException{ BufferedReader myInput = new BufferedReader (new InputStreamReader(System.in)); int code, al, nmp, brc; float tf = 0 , ir = 0; String name = "" , description = ""; System.out.println ("Enter Your Barrower's Name"); name = myInput.readLine(); … | |
I am doing a payroll program that requires a sentinel value. I cant seem to get it right no matter how much I try. here is my code so far: //Filename: Payroll3.java //Description: Payroll calculator with sentinel loop //Author Name: Chris Russo //Date: 08/15/2010 import java.util.Scanner; public class Payroll3New { … | |
Hello, everyone!!! I just want to ask if you anyone here knows how to compile java file in linux specifically UBUNTU. For example, I have a java file named Hello.java and saved at my desktop. how do I compile and run this file using the terminal of ubuntu... By the … | |
hi, i was supposed to write a program in jgrasp, using java, i am a grade 12 learner, my program needs to have gui, my program compiles with no errors, when i run it it gives me my error message - "problem with showdata" - and only fills the first … | |
please me on how to insert a picture am new to netbeans [CODE]package LibraryDatabase; import static javax.swing.JOptionPane.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; public class PostLibraryDatabase extends JFrame implements ActionListener { JTextField firstName, surName, id, serialNumber, category, dateToday, coverTitle, isbnNumber, authoursName, coAuthoursName, pubDate, loanDate, returnedDate, email, details; JButton writeBtn, displayBtn, … | |
Hi I successfully wrote a program that keeps sending data from client to server and from server back to client where the client prints the data. But now I'm trying to write one whereby the user enter numbers at the client and they are sent to the server whereby they … |
The End.