35,617 Topics
![]() | |
I need to write a JAVA program that converts an uppercase letter to a lowercase letter ... the method declaration should be public static char upperCasetoLowerCase(char ch) ... I think I am missing something in my thought process. Can anyone help? Here is what I have tried... [code] public static … | |
i wrote a program to help input User ID's for a system admin can any one check the code to seewhat wrong with it thank you | |
This is my skeleton of my very basic computing project, which is to create a spelling test displaying twenty questions: [code] // // spell_test.java // spell_test // // Created by chocobo74 on 21/09/2004. // Copyright (c) 2004 __MyCompanyName__. All rights reserved. // A simple Java applet // import java.awt.*; import … | |
I am doing a program in which there are 8 planes seats the user gets to choose whgich seat they want. I created the GUI buttons and what not (fairly easy), but I wanted to make an array....I'm rambling here, because I can't do this program the way I want. … | |
Hi! I have a little problem The program is OK, but I can not print out: QUESTION is how can I print out (class Test). I mean How can I write toString()methode.how can I print out "myTable" and the out put must be like this: Audi blue 180 Volvo red … | |
:sad: Hi all, been trying to code the following program for ages, if anyone can help please do so. Code a java program that will determine the cyclomatic complexity(CC) of any given java source code module held in a text file. The program is to display the CC. Note- CC=Number … | |
hello everybody i am having a problem is it possible to add list to Window class in awt | |
any body help me i have a problem is it possible to change the font style , size of the [SIZE=4][COLOR=Indigo]tooltiptext[/COLOR][/SIZE] using AWT or Swings in Java | |
I have to do a basic program of a calulator(text field at top for display and then all numbers) it does not have to be funtional. I know you can only have one layout manager per container...but I can't get it to work? This is what I have so far..any … | |
newbie taking java 1 got a question my book seems to be hiding the answer to. my project is to make a smiley face that resizes when the window changes size. my prof. gave told us that size is all relative when creating the face the circle head something along … | |
i'm write a program that asks for a password then if correct will go into a while loop, but for some reason whenever i execute the code and enter the right pass, nothing happens. heres what i've been working on: [CODE]/* This program will simulate a program that could be … | |
I need help to declare a method to determine whether an integer is a prime number using the method of public static boolear is Prime(int num) Need to find the first 1000 prime numbers and display every ten prime numbers in a row. If you can help email me at … | |
Hi, Can anyone tell me how to tweak my code so it will only generate a random number between 0 and the number input by user? Here's the code: [code] import java.util.Random; import java.io.*; public class RandomNumPicker { public static void main(String[] args)throws IOException { BufferedReader stdin = new BufferedReader … | |
My problem is that I need to make a program that has a JTextArea, a button and a JTextPane in it. The idea is to put in the JTextArea either by typing or by pasting java source code. Then press the button and out would come a colored version of … | |
I'm trying to compare a string to an ArrayList Object. But no matter how I try to compare it, such as just ==, or .equals(), or .compareTo(), or String.valueOf(ArrayList.get()) with all of the above options, it won't compare correctly, even if they are equal when outputted they aren't equal when … | |
Hi my program needs to print a text file onto the terminal one line at a time. For example if I type, "java HT head -n 7 blablah.txt" it'll print the first 7 lines and if i type "java HT head -n 3 asdf.txt" itll print the first 3 lines … | |
A part of my hw is generate a doubly linked list which has the data from an input file ("shopping.in") i am using tokenizer, but however, everytime i try to put the token into the list and print, it gives me a memory place (Dnote@1289321wutever) please help me, this is … | |
I have written this program and I have gotten the program to run but when I run the program and I try to run the input validation portion it does not go back into the loop. Also when I calculate celsius into farenheit my output comes out to 0. Is … | |
Hi everyone, I am doing a simple program with some text in the jtextpane and the text inside the jtextpane span to about three standard A4 papers. What i want to do is to only be able print even and odd pages. I am using currently the java printable interface … | |
Hi, I am looking for some code that will prompt for a number to enter so a random number can be generated from that amount. Example: The program run would look like this: " Please enter the number to pick a random number from: " Let's say we enter 100, … | |
having trouble getting this match and replace to work, im trying to just find a word and put html bold tags around it on the button click and put that text into a new jtextpane. anyone have any suggestions??? any help would be most appreciative [code] import java.awt.*; import java.awt.event.*; … | |
hi. more or less a stupid question, but anyway.. why have a 'finally' statement in java exception handling -why not just clean up in the 'catch' clause?? is it for when an exception cannot be caught?? if not, then 'finally' seems a little redundant to me.. cheers. :eek: | |
hi, my next button displays next record from the database. But after i save a record, next button don't work. Im not sure but is the next button not working because the resultSet needs to be refreshed after saving a new record? I have created the statement and resultSet in … | |
it is my first time ever learning a programming language, and I am still very confused about some things. We are using Jbuilder, and I find that I am still getting a lot of errors. i am posting this in hopes that some one can maybre give me some points … | |
Hi everyone, I have an embedded jcomponent in a jtextpane and i am trying to print the contents of the entire jtextpane to the printer i have. The program does not seem to work but if i use an embedded icon instead of an embedded jcomponent the program works fine … | |
Hi everyone, I need to ask a very generalised question. I have an embeded image in a textpane and i would like to know how to get hold of that image and store in an image variable when the user uses the mouse and highlights(selects) that particular image. I only … | |
my ap computer science assignment is basically to do the following: - Front menu gives the options to edit, save, delete, search for books (about 10 books) - In the edit menu, it gives more options to edit book title, author, and date published and save it. -delete menu lists … | |
:rolleyes: hi guys if there is any 1 out there who could just provide me with some help with java ,im in my final yr of computer science and have got to design a GUI that implements jdbc to creat an online auction system any pointers or help as to … | |
heres the problem; some one inputs a 4 digit number e.g 1234 I stored it as a string and i have to display it in a messagebox like ----------------------------- the digits are 1 2 3 4 ------------------------------------ How? p.s i know how to do trhe input box and display, but … | |
I was hoping that someone could show me how to use the equals method to change numbers that were entered. Three numbers are entered and the user is asked if they need to change a number. This is followed by a yes or no. It says if the answer is … |
The End.