35,618 Topics
![]() | |
hi please help to print character form a-z and 0-9 randamly in java all the character sholud be present without repetion ie all 26+10 letter sholud print and each time it sholud print differently like First time if it print like this 0 a 2 f g t h y … | |
My Printwriter method is not writing to a text file. the code runs fine it displays the text on screen but nothing appears in the text file. [CODE] public void run() throws IOException { Scanner sc = new Scanner(System.in); boolean cont = true; while (cont) { System.out.println("Enter your line text"); … | |
Hello, I am pretty new to Java so I am following along in a book to learn it. I am currently in the beginnings of making a MIDI player but I have run into to a problem. I am using a sequencer, if I don't close the sequencer the program … | |
I had to convert one of my programs into an applet. And most of it I copied and pasted, but the program is suppose to let the user input a number in the texfield and when they click one of the radio button options the calculate resuls are suppose to … | |
Hi, I am trying to create a graphical program that visually stimulates the path of the sun over a city skyline. I've created a Time button but I don't know how to move my sun to the right each time I click on "Time". The program should works like this: … | |
So my teacher this semester is the worst I ever had, I can not get a hold of him at all for help on these labs I've been working on them and trying to get his help on them for the past 3 weeks but since it's an online class, … | |
I'm trying to make a method that would create a new tab with a specified name and a white background. However, nothing I pass in (whether it's a JPanel, JButton, etc.) would show up in the final result. I can't tell what's wrong. [CODE]import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.BorderLayout; import … | |
Salon membership fee Male = 600 Female = 500 If Foreigner +850 n for not foreign f if foreign my code is [CODE] public static void main(String[] args) { String gender, nat; gender=JOptionPane.showInputDialog("Gender"); nat=JOptionPane.showInputDialog("Nationality"); if (gender=="m" & nat=="n"){ JOptionPane.showMessageDialog(null,"Gender:" +gender +"\nNationality"+nat+"Fee is 1450" [/CODE] This code doesn't work so I … | |
I am a beginner when it comes to jsp, so sorry if the code is really bad. I need to be able to convert images to and from byte[] to store and display images, but I am not sure how to do it. I have a form first for uploading … | |
Okay, so I wrote a method that goes through the arraylist checks if the items has the maximum value, which is ten, and returns it in a new arraylist. I got that method to work, but I am having trouble writing the test class for it. It keeps returning false. … | |
i want to add a button in my java program so that when i click that button pages of router\modem connected to computer is open please suggest solution | |
Hello Could someone point out what I need to change in the code I have so far? I would like to use XML format in a properties file. The original .properties worked but this will not load the new formatted .properties. I have an app that loads properties in ModelUtils.java … | |
Write a program which takes a single integer input "height" and displays a "pyramid" of this height made up of "*" characters on the screen. Sample Output: Pick another height (must be between 1 and 30): the triangle must be equilataural * *** ***** ******* ********* *********** ************* | |
Ok so I have been working on this for 12 hours straight and I cannot get it to work right to save my life. Attached is the word document of what the project is suppose to do and the file its suppose to read from. [B]ANY HELP IS GREATLY APPRECIATED … | |
hey guys ok so i'm stuck with a logic error this program im writing requites me to we write my own hash table when pulling a pice it seems to add an extra index some how there fore it really shows up with dates in December. thanks for any help. … | |
Hi all I am aware of possibility to have an array of objects (usually Strings) as the parameter options, so we can have buttons with custom labels. Is there any easier way to just for example change the value of OK_OPTION option button label/text from "ok" to "okAy" ? Thanks … | |
Recently i needed to override dome default values of swing properties ... I got the answer currently needed.Details are located [URL="http://www.daniweb.com/forums/post1210384.html"]here[/URL] But after that i interested to find a way to have all these pairs (simply HashTable keys and values elements) to override them at the startup of applications to … | |
Hi, I am starting out with linkedlists and would like to know about using another class in a linkedlist. Here is what I am trying to do: [CODE]LinkedList<Student> list = new LinkedList<Student>(); list.add(new Student("Name", 92, 87, 81)); [/CODE] I have no idea what the student class would look like! Would … | |
Hi, I am a JSP newb. I have been scratching my head over this for a while. My task: to construct a POST and to read the response that comes back. I have been provided with some kits that illistrate how to do the job in ASP, ASP.NET and PHP, … | |
hi guys, im currently working on an assignment where i have to create a secure chat room program, it works by one main chat server and then each client can log in and send messages to the server and the server will send the messages back to everyone that is … | |
We have an Eclipse RCP application and in case of server disconnection we would like that the cursor changes to HOURGLASS. It works ok for a normal frame, but if a dialog is active, then in dialog the cursor remains ARROW. Any idea? | |
I wish to use a function in .js file in .net using java script which have two parameters ie one getting row value and other getting column value and function should return the table is it possible I am new to java script please help me. | |
How can we pass the variable value from javascript to jsp page at runtime? I am getting this problem when i want to display the second drop down box according to the selected item in the first drop down. For ex: Lets consider we have a drop down field named … | |
i want to know how connect a microsoft access using java and i want how to call this data base thanx:) | |
Dear all I am currently trying to find a java source code with which either HTTP POST or GET request can be catch from my program, then the HTTP POST can be read to our user on my program,,,can some body help me ? Thank you in advance | |
G'day, I've just been cleaning up some of my queries, and have opted to use a MySQL view for simplification of my queries, as i was using multiple queries to get the values that i wanted. However, I cannot quite figure out how to iterate through the view. My view … | |
I'm a real Noob to programming & am taking a class of intro to Java. I keep getting a variable not initializing error on the nightsA line calculation. I'm going to warn once again I'm a NOOB to this, so any help is appreciated. import java.util.Scanner; public class SunnyDaze { … | |
i want to display buttons like this in applet a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 when i click to any … | |
I want to make banking system which calculates all information about bank either there is Account manegment system or any other...plzzz tel me some tricks to make this program by using simple java | |
I'm working on the following assignment and could use some help: A teacher has five students who have taken four tests.The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores: Test Score Letter Grade … |
The End.