English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - February 2007

[Selected]: All categories Computers & Internet Programming & Design

Am finished but it says that ; is expected on lines 26 and 70. I don't know how to fix that. Please help?

public class TwelveDays
{
public static void main( String args[] )
{
String Day1 = "a partridge in a pear tree";
String Day2 = "two turtle doves";
String Day3 = "three french hens";
String Day4 = "four calling birds";
String Day5 = "five golden rings";
String Day6 = "six geese a laying";
String Day7 = "seven swans a swimming";
String Day8 = "eight maids a milking";
String Day9 = "nine ladies dancing";
String Day10 = "ten lords a leaping";
String Day11 = "eleven pipers piping";
String Day12 = "twelve drummers drumming";

String Day;
String output;

for(int i=1;i<=12;i++){
Day = "";
output = "";

Switch(i)
{
case 1:
Day = "first";
break;
case 2:
Day = "second";
break;
case 3:
Day = "third";
break;
case 4:
Day = "fourth";
break;
case 5:
Day = "fifth";
break;
case 6:
Day = "sixth";
break;
case 7:
Day = "seventh";
break;
case 8:
Day = "eighth";
break;
case 9:
Day = "ninth";
break;
case 10:
Day = "tenth";
break;
case 11:
Day = "eleventh";
break;
case 12:
Day = "twelfth";
break;
}

output = "On the " + Day + "of Christmas, my true love sent to me: ";

for(int k=i; k>=1; k--){

Switch(k)
{
case 1:
output = output + Day1 + "." + "\n";
break;
case 2:
output = output + Day2 + ",";
break;
case 3:
output = output + Day3 + ",";
break;
case 4:
output = output + Day4 + ",";
break;
case 5:
output = output + Day5 + ",";
break;
case 6:
output = output + Day6 + ",";
break;
case 7:
output = output + Day7 + ",";
break;
case 8:
output = output + Day8 + ",";
break;
case 9:
output = output + Day9 + ",";
break;
case 10:
output = output + Day10 + ",";
break;
case 11:
output = output + Day11 + ",";
break;
case 12:
output = output + Day12 + ",";
break;
}

}

System.out.println(output);

}

}

2007-02-22 12:14:29 · 1 answers · asked by bloodyhell1981 1

so I have a photo of this chick in uniform..how can i put my head on hers? so it looks like i am her?

2007-02-22 12:12:46 · 1 answers · asked by Anonymous

ok im trying to run ipconfig but when i go to the run menu and type in cmd.exe it says Another Program Is Currently Using This Program. And like when i type in help or tree in the run thing it comes up for a split second and it goes away. Then itry to open the Command Prompt but it says the same thing with the run thing. Help?

2007-02-22 12:11:44 · 3 answers · asked by Anonymous

I want a personal website with a view to changing it to a small business website. What is the best site to use?

2007-02-22 12:04:29 · 7 answers · asked by Duplicate 1

Every time i go to the terminal and type in SU it asks for my password and then it wont let me type anything except for enter...??? HELP!

2007-02-22 12:03:13 · 3 answers · asked by -cheree- 2

i was wondering how to exactly make a website out of using Microsoft publisher because i have no clue how and i dont know how to do the coding on notepad to make a website. thanx

2007-02-22 11:47:53 · 3 answers · asked by Anonymous

I read similar questions posted on here, but no one has actually posted how. I followed some of the suggested links but still no answer. Please answer my question if you actually know. Thanks.

2007-02-22 11:44:20 · 4 answers · asked by miss_little2004 2

if this matters..im using widows xp

2007-02-22 11:19:20 · 6 answers · asked by trustnoone929 2

2007-02-22 11:12:21 · 1 answers · asked by Yea Yea 4

Can anyone tell me what program I use to create a 'pop-up' when someone enters a certain page within my website.

I am bareley knowlageble on html but know some basics. if it is only an http address I cahnge or similar, I could do that if anyone knows the html coding.

Don't be shy, if you can help me out, then help!

BEST answer gets TEN POINTS.

2007-02-22 10:34:59 · 3 answers · asked by redcar_rebel 2

I currently use Microsoft FrontPage to design my website but have been told it looks unprofessional and is obviously made with FrontPage.

Can you suggest an alternative or better editor to use.

If you have any advice on how I can improve or enhance my site, please tell me. You can check it out at www.beanbob-online.co.uk

Don't forget 'BEST' answer gets TEN POINTS.

2007-02-22 10:29:53 · 3 answers · asked by redcar_rebel 2

I have a program that enables people to use several computers at the same time with a time limit. However, when alll computers are working at once I get an error "524" and the program shuts down. But, the computer goes on running. How do I get the computer to shut down when the program stops working?

2007-02-22 10:07:42 · 5 answers · asked by Carla 4

I really need to learn ActionScript and haven't got the to actually buy Flash or some other program to learn it. I would like to know if there are any ways I can learn ActionScript with a free program or something of that sort.

2007-02-22 10:03:47 · 2 answers · asked by Steve B 3

2007-02-22 09:15:29 · 2 answers · asked by AB 1

2007-02-22 09:12:17 · 2 answers · asked by Anonymous

I want to make my own site

2007-02-22 08:59:31 · 5 answers · asked by Drama Queen 1

2007-02-22 08:47:07 · 3 answers · asked by Anonymous

i am looking for someone to design me a web site for my business, i have a company logo in vectra form which i would like on the site in flash form as an intro, it would be around 5 pages in all, anybody help us out? if so please let me know fees etc,
thank you..

2007-02-22 08:42:53 · 6 answers · asked by atc,uk 2

Two players (say A and B) take turns, starting as follows"

ABBABAABBAABABBA....
(they alternate for the first two. Then they alternate, but with B first. For the next four, the do the first four, but reversing A and B. For the next eight, they do the first eight, but reversing A and B. Etc.)

Without writing out the sequence, can you determine who takes the 99th and 999th turn?

(HINT: IT HAS SOMETHING TO DO W/BINARY NUMBERS)

2007-02-22 08:36:26 · 3 answers · asked by ClooneyIsAGenius 2

i am in the process of making a web page on a free hosting website and i need to know HOW TO MAKE TEXT BOXES THAT TRANSFER THE INFORMATION THAT IS ENTERED IN THEM DIRECTLY TO MY E-MAIL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2007-02-22 08:27:43 · 4 answers · asked by ghj g 1

In class we started learning about recursion, and I'd like to know which is better.

2007-02-22 08:18:15 · 6 answers · asked by angmoo 1

2007-02-22 08:00:13 · 10 answers · asked by google_is_top 1

b

2007-02-22 07:55:32 · 3 answers · asked by gmailkid 1

I am new to computers. Software, hardware, routers are foreign words? But I want to learn, any Suggestions?

2007-02-22 07:49:31 · 7 answers · asked by Chuck 2

I use grep and egrep countless times daily but once in awhile I come up with a problem that grep can do part of and egrep can do the other part but neither can do both.

Maybe I just need the syntax?

I have a file with 3 digit codes something like this:
001003009000000000
002004008997999000
... etc etc

I want to find lines with the same code repeated so:

grep '00\([0-9]\).*00\1'

will find it but not necessarily in the correct format. E.g. it will incorrectly identify '001030010' even though the codes are 1, 30 and 10.

I would like to use: grep '00\([0-9]\)\(...\)*00\1'
but the wildcard does not apply to groups in grep. And egrep cannot backreference a match in the form \n.

How can it be done?

2007-02-22 07:43:26 · 1 answers · asked by scruffy 5

for microsoft visual basic 2005 express edition

2007-02-22 07:20:40 · 2 answers · asked by Anonymous

I am looking for a free web host, i like freewebs, but i dont like the way you can only upload 1 file at a time.

I will not use geocities

I need one that i can transfer my domain name to

2007-02-22 07:07:07 · 7 answers · asked by kinglee28 2

It used to be called as INFOBASIC, and I couldn't find much about it o the internet, and I need a reference guide to this language or any kind of books that may familiarize a beginner with the language.

2007-02-22 07:06:10 · 2 answers · asked by hero1 1

Can some on explain to me three different computer system types? I am confused

How would these systems be used in a business situation? Help

2007-02-22 07:00:26 · 1 answers · asked by CookFrNW 3

fedest.com, questions and answers