Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners output all the uppercase letters

Have Programming Question? Ask it here!
 
 
 


G
output all the uppercase letters
1 Answer(s)      6 years and 6 months ago
Posted in : Java Beginners


can some one tell me how to output all the uppercase letters. Thanks in advance!!


Advertisement
View Answers

April 4, 2008 at 6:08 PM


Here, is the output of uppercase program.

ConvetUppercase.java

import java.io.*;
import java.util.Scanner;

public class ConvetUppercase{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Welcome to Letter converter!");
System.out.println("Enter the letter of alphabet in lowercase!");
String str = scan.next();
str.substring(0, 97);
String str1 = str.substring(0, 97);
str1.toUpperCase();
System.out.println("The alphabet letter in Uppercase="+str1);
}
}

------------------
run the given above program code and get to the output in uppercase letter.

amar




Related Tutorials/Questions & Answers:
java.lang.String.toUpperCase()
As the method name suggest "toUpperCase()" it is used to convert all... you need the generated output into upper case for example while showing...() java example: public class Uppercase { public static void main(String
Uppercase Characters in Java
Uppercase Characters in Java  I want to know how to UpperCase Characters in Title useing a java code...?   Use toUpperCase() method to convert the string in uppercase letters. class UppercaseString { public static
Advertisements
Sorting the letters in a String
Sorting the letters in a String  I have recently learned how to sort... the letters in one particular string. For instance, if I enter in the string "Hello my name is Danny!" the output would be "!aaDeeHillmmnnnosyy
output
output  Sir,I am experiencing some problems with the output of this program.I got some useful help this website,but the output of the program isn't producing what it should.let me explain the output below is what happen when
C String uppercase
C String uppercase      ... in to uppercase. In the given example, we have define a string in lowercase characters. Therefore, in order to convert the characters of string in uppercase (A to Z), we
Display first letter of every word in uppercase
, you will learn how to display the first letter of every word in uppercase... to uppercase. Here is the code: import java.util....(words); } } Output: Enter the sentence: java
Sales Letters Write Services
is to showcase your product with all its salient features. Writing first word on a blank... the task becomes all the more challenging. In recent years the need... communication is lucid, effective and arresting at the same time. As we all know
Output of flex
Output of flex  hi....... please provide the name of the output file. What is the output of flex applications? please rply ASAP........ Thanks
triangle output
triangle output  program to get the following output
input output
Input And Output       Introduction The Java I/O means Java Input/Output and is a part... used for writes byte to output stream. It implements a buffered output
triangle output
triangle output  program to get the following output: * *   Hi Friend, Please specify the pattern properly. Thanks
What will be the Output?
What will be the Output?  int[] number = {5,3,6,10,1} int temp; for (int i=0; inumbers[j]) { temp=numbers[i]; numbers[i]=numbers[j] number[j]=temp
What is the output if....
What is the output if....  Here is my code. what is the output...");   When we put 50 as a lower limit value, output comes: Entering... as a lower limit value, output comes: Entering the try block. Exiting the try block
output of the program
output of the program  public static int sum(List list) { int sum = 0; for ( Iterator iter = list.iterator(); iter.hasNext(); ) { int i = ((Integer)iter.next()).intValue(); sum += i; } return sum
xml output
xml output  generate an xml output in the following format <FileCount> <DOC>AA <RTF>BB <PDF>CC <Total>DD where AA=total number of .DOC files found BB=total number of .RTF files found,etc
output error
output error  this is my program import java.io.*; public class separate { public static void main(String[] args)throws IOException...]; for (k=0;k } } if i enter "my name" as the input the output
what is the output?
what is the output?  public class MyAr{ public static void main(String argv[]) { int[] i=new int[5]; System.out.println(i[5]); } }   It gives ArrayIndexOutOfBoundsException as you haven't add element to array. Correct
what will the output
= (Parent) sonu; p.play(); What will be the output of above section of code
Introduction
be differ in meaning based on different use of uppercase and lowercase letters... letter  with lowercase letters. Case sensitivity in Computers:  Case
PHP Change Case
a string from normal text to all lower case text, to all upper case text and convert every first character to uppercase. To convert a string to all lowercase text we will use strtolower() function, to convert a string to all uppercase text
I/O Program output error
I/O Program output error  Hello All, I am working on a program that requries me to read and analyze a .txt file and output the results to a .txt... not know how to take all the AgentID's and add their pValues together to output
what is given output?
what is given output?  public class { public static void main(string argv
Data input & output Stream
Data input & output Stream  Explain Data Input Stream and Data Output... stream in a machine-independent way. A data output stream lets an application write primitive Java data types to an output stream in a portable way
how to get following output
how to get following output  input 123456 output 1 2 3 4 5 6
how to get following output
how to get following output  input 123456 output 1 2 3 4 5 6
Output Encoding - JSP-Servlet
Output Encoding  From security vulnerability perspective, we?d like to perform output encoding of special characters (ex: < > ? ? % ; ( ) & +) on JSP while displaying pages.How can this be achieved ? Can we achieve
Input and Output package
Input and Output package  Hi guys, My professor used input and output... she used in.readint() out.writeln() commands to read input and print output. she created two new objects directly to use this statements. /* input and output
Object Output Stream
Object Output Stream  Can anyone decode the data from a file which is written by ObjectOutputStream?? I want to know if this is a secure way to write protected data without encryption
how to write code for this output?
how to write code for this output?   1 2 2 3 3 3 4 4 4 4 5 5 5 5 5
output using SQL
output using SQL  how to get ( 15 march 2011) and (15/03/2011) output using SQL   Use the following queries to get the data from database in the given format. For (15 march 2011) format: SELECT DATE_FORMAT(dob, '%d
output java - Java Beginners
output java  public static int secret(int one) { int i; int...; } a. what is the output of the ff. java statement:? i. System.out.println (secret...?  Hello Are you beginner? Ok, The first Output is 125
Output of null value
(str); } } Output value Null Description:- In the given example
Error output - JSP-Servlet
Error output  Can anyone please assist me; The printed output should be: The product is 10. But instead of it I got; The product is undefined. Can anyone trace what went wrong of my code pls
output error - JSP-Servlet
output error  /*hi friends, the given below is my servlet program error? How can i solve this problem? */ HTTP Status 500 - -------------------------------------------------------------------------------- type Exception
input output in java
input output in java  java program using filereader and filewriter   Hi Friend, Try the following code: import java.io.*; class FileInputStreamAndFileOutputStream { public static void main(String[] args) throws
Input And Output
Input And Output       Introduction The Java I/O means Java Input/Output and is a part of java.io... for writes byte to output stream. It implements a buffered output stream
Handling transformation output
Handling transformation output       Handling transformation output After passing xml and xsl sheets , we need to handle output ,after transformation
important for all final years student
important for all final years student   i need a java program for my project, java program for getting path of the file in console while reading a file it should add page number in all pages after that delete all common letters
Creating custom output using XMLUnit - MatchTracker duplicates the output data
Creating custom output using XMLUnit - MatchTracker duplicates the output data  how to create a custom output using xmlunit, I have tried it and used... in input xml and I am having duplicate data in output
XSLT Output Types
; } Output Types The xsl:output element lets you specify how to generate result output. Although it is not required to specify the type of output but an XSLT... of the output element.  The xsl:output element is a top-level element
How to get Output for a Bean problem
How to get Output for a Bean problem  Hello Kindly tell me a simple Program on Bean to get the Output using JSP code
Java Redirect output to file
Java Redirect output to file This section illustrates you how to redirect the output to the file. It may be comfortable to a programmer if they are able... to the file. In the given example, we have set the output stream of System
printing the following output using for loop
printing the following output using for loop  1 2 3 3 4 5 4 5 6 7
printing the following output using for loop
printing the following output using for loop  1 2 3 3 4 5 4 5 6 7
servlets output to jsp - JSP-Servlet
servlets output to jsp  hey i have writing a code lately and wanted to print the output to the jsp page from the servlet.the servlet would read the command prompt n thn return the output as string to the jsp page here
save output in multiple text files
save output in multiple text files  Hi..I'm getting problem to store the output of this php code into multiple text files. Can anyone sugeest. Here... = $dom->getElementsByTagName('a'); foreach ($links as $link){ $output
STACK - WHY THE OUTPUT COMES LIKE THIS?
STACK - WHY THE OUTPUT COMES LIKE THIS?  //: holding/StackTest.java...(!stack.empty()) System.out.print(stack.pop() + " "); } } /* Output: fleas has dog My WHY THE OUTPUT COMES LIKE
Process Flows Output - Java Beginners
Process Flows Output  Hi, I have been asked to get a particular structure as the output. the assignment is as follows Any process flow has..... there might be a split activity sumwhere in the process, that splits the process flow
 

 

 

DMCA.com