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 print birthday in Java?

In Java, you can print a birthday by using the System.out.println() method. For example, if you have a birthday stored in a variable, you can print it like this: String birthday = &quot;January 1, 2000&quot;; System.out.println(&quot;Birthday: &quot; + birthday); This will display &quot;Birthday: January 1, 2000&quot; in the console. You can also format the date using the SimpleDateFormat class if you're working with Date objects.


What does the count minus minus in java mean?

In Java, the expression count-- is a post-decrement operator. It decreases the value of the variable count by 1, but it returns the original value of count before the decrement. This means that if you use count-- in an expression, you will get the value of count prior to it being decremented. For example, if count is 5, using count-- will yield 5 in the current expression, but afterwards, count will be 4.


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


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

By using the static block