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




Have Programming Question? Ask it here!
 
 
 


whitebird
task 1
1 Answer(s)      4 years and 4 months ago
Posted in : Java Beginners


Please write a Java client that send a small letters string to a Java server which convert it to uppercase letters and send it back to the client. Please submit both the client and server programs

Advertisement
View Answers

March 31, 2010 at 10:19 AM


Hi Friend,

Try the following code:

import java.util.*;
class ChangeCase{
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.print("Enter String:");
String st=input.nextLine();
String upperCase=st.toUpperCase();
System.out.println("String in Upper case: "+upperCase);
}
}

Thanks


Related Tutorials/Questions & Answers:
task 1 - Java Beginners
task 1  Please write a Java client that send a small letters string to a Java server which convert it to uppercase letters and send it back to the client. Please submit both the client and server programs  Hi Friend
Solving task 1 by 1 from bundle of task data
Solving task 1 by 1 from bundle of task data  Hello and namaste guys... of row.row means task.in each task, there will be an information like userid, Taskid, user_input i have to use the information for eash task to solve the task
Advertisements
task 2 - Java Beginners
task 2  Write a time server that follows the time protocol outlined in RFC 868. When a client connects, the server sends a 4-byte, big-endian..., January 1, 1970 GMT (the epoch
Java task scheduling
Java task scheduling  What is a task?s priority and how is it used in scheduling
Java task scheduling
Java task scheduling  What is a task?s priority and how is it used in scheduling
Java Timer Task
Java Timer Task  How to assign a task in java at specified date & time (with seconds) using threads
Task Tag Decorator
Task Tag Decorator         In large projects there are a lot of task tags like TODO, FIXME, etc. and Eclipse provides only plain list of all these task tags which I
Task Scheduling in JAVA
{ int count = 1; // run is a abstract method that defines task performed... Task Scheduling in JAVA       In some applications some task need to run periodically
How to disable task manager using java
How to disable task manager using java  How to disable task manager using java
Scheduling a Timer Task
Scheduling a Timer Task       In this section, you can learn how to schedule a timer task to run.... This program asks you for the way of performing the task whether at the certain
Task manager enable and disable thru java
Task manager enable and disable thru java  I would like to know, how to enable and disable task manager using java. Kindly, please Let me know
A small programming task, plz respond at the ealiest..
A small programming task, plz respond at the ealiest..  Hi Guys ,small task to you all... sam seeks your help to know the longest run possible with the given peaks
Need for Marketing Management Task
Management Task helps the management of companies in achieving the results... should be given focus during fixing a Marketing Management Task, many more topics
Tags in struts 1
Tags in struts 1   I have problem in Include tag in Struts this tag using but it is not work Please Explain
Hibernate 1 - Hibernate
Hibernate 1  what is a fetchi loading in hibernate?i want source code?plz reply
function 1 - Java Beginners
function 1  WAP to calculate the value of x,where x=tan(A)+tan(B)/1+tan(A)*tab(B)  Give more details like how to calculate and what is tan(A) and tan(B),etc
java code7 of 1
java code7 of 1  Develop the program calculateHeight, which computes the height that a rocket reaches in a given amount of time. If the rocket accelerates at a constant rate g, it reaches a speed of g ?· t in t time units
java code 8 of 1
java code 8 of 1  Develop a program that computes the distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river, and the river's speed. Speed is distance/time
java code 1 of 2
java code 1 of 2  Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes   Hi Friend, Visit
String Exercises 1 - Answers
Java: String Exercises 1 - Answers Answers to the String Exercises 1. 3 -- s refers to exactly the same string as a. ERROR -- t is a local variable, and it must be assigned a value first. "1abc" -- + means concatenation
java program 1
java program 1  (4) WAP to take input of a String and check wheather it is valid number or not? Sample Output1: Enter a String : 10 10 is a number Sample Output2: Enter a String : 10b1 10b1 is not a number (5) WAP to take
Ajax Question 1
Ajax Question 1  I am having 3 fields in jsp they are Fieldname,Fieldtype,Required. If i enter Fieldname as studentid,Fieldtype as checkbox,Required as true(i.e., mandatory field as *).It should store their details in database
WEBSERVICES=1 - WebSevices
WEBSERVICES=1  I have develop webservices through wsad classes i dont want like this.I want like Create simple class to acess webservice is it possibule to create simple class to acess the webservice?  Hi Friend
java code 1 of 2
java code 1 of 2  Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes   Hi Friend, Try
que 1 - Java Beginners
que 1  WAP to enter a sentence & count the no. of times a particular word occurs in it.Display the frequency of the searched word. eg- input:the quick brown fox jumps over the lazy dog. word to be searched:the output
contructors 1&test
contructors 1&test   how do i Create a class named Box that includes integer data fields for length, width and height. Create three constructors... created with length 10 and width 15. Box created with length 1, width 2
problem 1 - Java Beginners
problem 1   Hi, please help me!!!! How can i code in java using Two-dimensional Arrays? This question is related to the one i posted before. this is my input data file: 88 90 94 102 111 122 134 75 77 80 86 94 103 113 80
array 1 - Java Beginners
array 1  WAP to input values in 2 arrays and merge them to array M.  Hi Friend, Try the following code: import java.util.*; class MergeArray{ public static int[] merge(int [] ... arr) { int arrSize = 0
Logging Tutorial - Part 1
Logging Tutorial - Part 1 2000-12-14 The Java Specialists' Newsletter [Issue 003] - Logging part 1 Author: Dr. Heinz M. Kabutz If you are reading... information. Logging Part 1 of ... (haven't decided yet ;-) While we
data insertion and fetch 1
data insertion and fetch 1  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type
New Page 1
;= 1; i <= 9; i++){   for(var j = 1
Struts 2 Integration with Struts 1
Struts 2 Integration with Struts 1  I want to integrate struts 2 with struts 1 existing application. Can you please help on how to go about this. I am not finding any good source to integrate struts 2 with struts 1 framework
Cohabitation struts 1 and 2 - Struts
Cohabitation struts 1 and 2  Hi, I have a problem with the cohabitation of struts 1 and 2. I work on a web application which used struts 1. But i must add some functionality in struts 2. When i modify my web.xml file
How to Addding 1 Year with PHP
How to Addding 1 Year with PHP  Hi, I am very fresh in PHP language. I trying to create a small application about how to adding 1 year in specific date. Please suggest me. Thanks
EXCEPTIONS-----1 - Java Interview Questions
EXCEPTIONS-----1  How To Handle The Exceptions With Out Using Try,Catch And Throws?I Want Region Plz Post Answer
Java Programming: Chapter 1
Chapter 1 Overview: The Mental Landscape WHEN YOU BEGIN a journey, it's a good idea to have a mental map of the terrain you'll be passing through... detail later in the course. Contents of Chapter 1: Section 1
received memory warning level 1
received memory warning level 1  received memory warning level 1 and if i continue to it .. i get second warning received memory warning level 2 And then my application get crash. Can any one please explain me what
Java: Regex Exercises 1
Java: Regex Exercises 1 Name _______________________________ Assume String subject = "This is test 123 of <a href="http://here.there.tld">Hello</>"; String regex; String result; . . . Pattern pat = Pattern.compile(regex
Java: Method Exercises 1
Java NotesMethod Exercises 1 Name: _________________________________ What...? ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ ___________________________ 1... { result = 1; } return result; } } Copyleft 2005
Java programming 1 - Java Beginners
Java programming 1  write one program, which consists of a main... be at position 1, etc ?A sentence is constructed with a series of words? Index 0 1 2 3 4... should in return the string unaltered. String two = insertWord(sentence,word,-1
Java programming 1 - Java Beginners
Java programming 1  write one program, which consists of a main... be at position 1, etc ?A sentence is constructed with a series of words? Index 0 1 2 3 4 5 6 7 8 We need to provide a method
Chapter 1. EJB Overview
 Chapter 1. EJB OverviewPrev Part I. Exam Objectives Next    Chapter 1. EJB OverviewIdentify the use, benefits, and characteristics of Enterprise JavaBeans technology
Heilighting error field in struts 1
Heilighting error field in struts 1  Hi, I am trying to change field color on error occur to a particular field. But i m not able to do it.I try to use errorStyleClass and errorStyle as well bt it giving me an error
Java programming 1 - Java Beginners
Java programming 1  Thx sir for reply me ^^ err how bout if using scanner class or further method to solve that code? instead of using array?   Hi friend, For more information on Scanner class visit to : http
INTTERFACE 1 - Java Interview Questions
INTTERFACE 1  What is a Interface?  Hi Friend, Interface is the collection of methods with empty implementations and constants variables ( variables with static and final declarations ). All the methods
JAVA leftshift operator add 1 instead of 0
JAVA leftshift operator add 1 instead of 0  Hi Guys, I have a task to do. If I have some some int variable and If I apply left shift operator... So, the answer will be 20. But, I want to have "1" instead of "0"s. So
Database books- Page 1
Database books- Page 1       The SQL Tutorial The Structured Query Language is used in manipulating data stored in Relational Database Management Systems (RDBMS
Java programming 1 - Java Beginners
Java programming 1  thx sir for reply me..but sir can u pls simplify it? cos the answer is not up to my requirement regarding the BMI index...; Hi friend, 1. Ask the user for their height. Convert it to a double
Advertisements
 

 

 

DMCA.com