Monday, June 2, 2008

i m in a java class- and i swear
my teacher doesn t teach us anything.

i m not sure how to set up this program.

Palindrome:
user inputs a word.
program determines if it is a Palindrome (a word that is spelt the same forwards and backwards ex mom racecar)

i actually did this program and it worked-
but he said we wernt aloud to just reverse
the word and use compareto- thats what i did.

this is what i have-
but i get an identifer expected error.

import java.util.*;

public class Palendrome {

public static void main(String args[])
{
Scanner input = new Scanner(System.in);

String word;

System.out.println("Please enter a word:");
word = input.nextLine();

int length = word.length();
int i;
char letter = word.charAt(0);

word = word.toUpperCase();

for(i = 0; i < length; i++)
{
if (word.charAt(i)!=word.charAt(word.length.))
{
System.out.println("Is");
}
}
}


}

PLEASE
if you could tell me what im doing wrong
and how to fix it- i would appreciate it so much.

thanks.

I just bought a domain for my family. I know how to make websites using flash html- java- etc. (you can see what im capable of on www.danoush.com) So what i want to do is have some way for users to upload their own pictures and have it instantly add to the website. How can I do that? Something sort of like flickr or Zoto (DEFINATELY not as complicated.) I heard its ajax? Is there any website that can help me do it? Potentially a forum type of code?
I have a host- along with PHP mySQL and FTP- All i really need is to know how to use those three to have an upload dialogue (maybe password protected) and have it upload to a place that automatically makes surfable albums for them

I took a course on C++- so I pretty much know the syntax of Java. However- I want to program things that require OOP so that I can get some experience with that.If possible- please provide multiple ideas that will keep me busy for a while.

My Java Programming class is having to do presentations on a number of subjects having to do with Java. I was given Open Source Java as my subject- and have been wondering what the opinion of actual programmers as to how important it is- or isn t. So- what is your opinion on Open Source Java?

i need some fruit names and common words like hello etc.. translated into java or malay. give me the word in english and how you would say it in java or malay.
ex: english - Java/Malay

can somebody help me on this please? ive tried the downloading the newest java as well and still i cant find a way to use the yahoo chess game- but the other yahoo games is working on my computer. what wrong?

No comments: