answersLogoWhite

0

suppose we have a string

String s = "hello how are you...";

char arr[] = s.toCharArray();

for(i = 0; i < arr.length; i++)

{

if(arr[i] 'u')

System.out.println(arr[i]);

}

that is it .I hope it works.If there is a better process let me know at :- "hello2.abhishek.pal@gmail.com"...

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is java program on computers?

#!/usr/bin/perl print 'java program';


How can you print a table of 5 in java by getting values from user?

look at the print


How do you print a string 5 times in java?

For(int I = 0: I &lt; 5; i++) { System.out.println(" print this " + I ); }


What is java console?

The Java console is a display of output sent by a Java program. This is similar to the MS DOS operating system.To print to the console, a programmer will type "println(text);" or "print(text);" depending is the programmer wants to make a new line after the text(println) or not(print).


How do you print message before main in java?

You cannot do that. The main method of a java class is the point where the execution begins. You can print messages only after a main method is invoked.


How do you write a program using function that counts the number of vowels in a string in java language?

Use text-editor notepad++


How do you print a symbol in Java when multiple of 5 occurs?

if x%5==0 { System.out.println("@"'); }


How do you print diamond shape in java?

you press on the little square then click yes.. simple


Write a program in java programming language to print welcome to java programming?

public class welcome { public static void main (String args[]) { System.out.println("Welcome to Java programming"); } } There are also many "Hello World" tutorials you can find elsewhere on the internet


What is Systenoutprintln?

You probably mean "System.out.println", which is a system method in Java that allows you to print text to the screen.


Can you print some message on the console without using main in java?

By using the static block


What does System.out.println mean in java?

System : is predefined class. out : is a Output Stream which connects to console. print : is to print in console. println: used to print with next line