35,618 Topics

Member Avatar for
Member Avatar for sharathk60

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 …

Member Avatar for sharathk60
0
382
Member Avatar for luvthug

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"); …

Member Avatar for charlieruns
0
173
Member Avatar for pinsickle

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 …

Member Avatar for pinsickle
0
144
Member Avatar for jko2326

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 …

Member Avatar for moutanna
0
135
Member Avatar for Siren88

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: …

Member Avatar for otherdummy
0
140
Member Avatar for Geodude0487

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, …

Member Avatar for Geodude0487
0
125
Member Avatar for idlackage

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 …

Member Avatar for idlackage
0
128
Member Avatar for kiyu2keith

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 …

Member Avatar for kiyu2keith
0
106
Member Avatar for madi-lin

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 …

Member Avatar for jwenting
0
887
Member Avatar for Protoroll

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. …

Member Avatar for cale.macdonald
0
88
Member Avatar for rohit25

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

Member Avatar for cale.macdonald
0
61
Member Avatar for ceyesuma

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 …

0
66
Member Avatar for Heba91

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 * *** ***** ******* ********* *********** *************

Member Avatar for bsewell
0
121
Member Avatar for newtojavas

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 …

Member Avatar for Salem
0
107
Member Avatar for theABCasian

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. …

0
43
Member Avatar for jlover2010

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 …

Member Avatar for jlover2010
0
167
Member Avatar for jlover2010

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 …

0
244
Member Avatar for david cashin

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 …

Member Avatar for david cashin
0
259
Member Avatar for nickbeare

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, …

Member Avatar for ~s.o.s~
0
147
Member Avatar for initialone1

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 …

Member Avatar for peter_budo
0
71
Member Avatar for elmisti

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?

Member Avatar for elmisti
0
118
Member Avatar for shine_jose

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.

Member Avatar for kvprajapati
0
68
Member Avatar for vijaysdon

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 …

Member Avatar for peter_budo
-2
2K
Member Avatar for lola_fcis

i want to know how connect a microsoft access using java and i want how to call this data base thanx:)

Member Avatar for jwenting
0
87
Member Avatar for tamagochi

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

Member Avatar for jwenting
0
38
Member Avatar for tyson.crouch

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 …

0
56
Member Avatar for PCKing

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 { …

Member Avatar for masijade
0
229
Member Avatar for sharathk60

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 …

Member Avatar for sharathk60
0
110
Member Avatar for mtbutt

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

Member Avatar for jwenting
0
299
Member Avatar for handrews3583

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 …

Member Avatar for otherdummy
0
3K

The End.