منتدى برامج نت | برامج نت | دليل المواقع | العاب فلاش | برامج | عيادة الطب | Free software
العاب افلام موقع منتديات

المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : عاجل اريد مساعدة


سوزي2006
03-14-2006, 05:47 PM
اخواني انا ضيفة ثقلية الدم:

اريد حل لبرنامجي بالغة الجافا
// ************************************************** ********
// Count.java
//
// This program reads in strings and counts the
// number of blank characters and certain other letters
// in the phrase.
// ************************************************** ********

import java.util.Scanner;

public class Count
{
public static void main (String[] args)
{


Scanner scan = new Scanner (System.in);



// Read in a string


while (1) // chabge the while condition to stop when the user type "quit"
{


// Initialize counts to 0


// a for loop to go through the string character by character
// and count the blank spaces and vowls letters
for (1)
{
// use string method to get ch at specific index
switch (ch)
{

}// end switch
}//end for

// Print the results and the string after change it to upperCase


//Get phrase for next time
System.out.println ("Enter a sentence or phrase, quit to end: ");
phrase = scan.nextLine();
}
}
}