Cheikh Sow

+ Follow
since May 23, 2005
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Cheikh Sow

So far I can create the buttons, but I can only achieve one button click at a time. I want to be able to click one button and click on a second button; each button will hide a picture then I will need to compare the pics . I am probably not explaining it clearly however this example in this link will give you a more precise idea.
this is the code I have so far.
Any pointer is appreciated

15 years ago
I need help searching and replacing through a two-dimensional array
basically I have:
String array [][] = {"1", "A", "B", "C", },
{"2", "A", "B", "C", },
{"3", "A", "B", "C", },
{"4", "A", "B", "C", },
{"5", "A", "B", "C",} };
Ask the user to input two characters that are in the array
if the user input 1A I print again the array but replacing A with '*' or until the user quit.
15 years ago
thanks your code is good but it puts an infinite loop in the code it is better to do
// check if second number read in is valid
while (!input1.hasNextDouble()) {
System.out.println("You did not enter a valid number");
System.exit(0); // exit program
15 years ago
I am doing a program that should act as a calculator; I have the following in it now how do I check if the value of x is an integer and NOT some random character. I hope I am being clear thanks

// initialize first input1 number
Scanner input1 = new Scanner(;
// prompt for the first number
System.out.println("Please enter the first number: ");
// declare the x variable and assign it the value of the first input1 number
double x = input1.nextDouble();
15 years ago
guys I have a problem I am doing a web site where I dont have
access to the CSS file. But the site content is written entirely
using tables many of them. There is a left navigation width
=182, right navigation width=162, but nothing is there unless
you put something in it and a content (.body_copy)that is 97%.
As I can tell the content itself can be divided with content_left width=228
and content_right=remaining_content
What I notice is in the CSS code there is no dimension given for
So my question is is it possible to redefine the .body_copy to give
it a width and create another class and give it a width of 228?
Note .body_copy and content_left should be parallels
Right now this is the content's CSS
.yellow_body {
background-color: #FFFFCC;
font-family: Arial, Helvetica, sans-serif;
font-size: 90%;
color: #000000;
padding: 5px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #000066;
.body_copy {
font-family: Arial, Helvetica, sans-serif;
font-size: 90%;
color: #000000;
padding: 5px;
Let me clarify I want the picture to disappear only under one condition and that is when home is not clicked. Also the pic is displayed inside the content, and since I have only on content I need to be able to alternate from pic to text. And why do you want me to use html frame when you know more than I that it sucks, and basically what I have so far is a frame as you notice. Can javascript do what I want if so how?
[ August 24, 2006: Message edited by: Cheikh Sow ]
No I am not using frame All my layout is based on CSS
basically i have a header footer left navigation and the content on the right.
My problem is that I have a content that has a pretty big picture in it when the page loads, but What I want is when I click on the menu the pic disappears and be replaced by the content of whatever is clicked.
working link at
note: Only Cephus Gregg Jr has content and when click it will display on the right of the pic
Also only Home should display the pic

As CSS this is a bit of what I have

Never written a piece of javasript how can I do one that will do what I want

Thank you
#content {
/* float then create left and top margin of content */
float: both;
margin-left: 280px;
margin-top: 0 ;

#content img {
float: left;
margin: 0;
padding: 2px;
border: 1px solid #FF0000;
<div id="content">
<img src="images/JamalHis_big.jpg" alt=""
width="630" height="953">
[ August 24, 2006: Message edited by: Cheikh Sow ]
I hava created a jar file i can run it from my computer doing the following

java -jar filename.jar

But this same program when I click it on a windows machine it does not work saying it cant find main is that a normal behavior.

Note the windows XP machine has only JRE

Also I have only one class and the main method is inside of it.
in the manifest line I just write the name of my class.
18 years ago
I think bluej is a good IDE for students the user interface is way simpler textpad is allright but has a price tag on it.
My professor wants to have my java project on a CD then he said to me "make sure it is executable". So my question is how do I achieve that am I suppose to just burn the to the CD or do I need to do something else.

Please help with steps if require newbie here
also note the project is based on AWT

Thanks Cheikh
[ December 16, 2005: Message edited by: Cheikh Sow ]
18 years ago