mnomanme / stringManipulationJava

A basic string manipulation problem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java String Manipulation Problem

Question

    1. Extract the transaction ID from the HTML body
<html>
	<title>Test</title>
	<body>
		Your trnx is successful. Trnx Id is: TXN123456
	</body>
</html>
Output: TXN123456
  • 2.Price of a formal shirt is 1200 tk and Sharee is 3500 tk. If you buy 2 shirt and 1 sharee, then 400 tk will be discounted. After your purchase what will be your total cost?

    1. Core i 7 HP laptop price is 76000 tk and cash payment discount 10%. What will be the purchase price?
    1. Writea program that will give following output:
     Input: chattogram
     Output: C8M
    1. Write a program that will count how many vowels in the given string:
     "roadtosdet"
     Output: 4
    1. Replace "R" from Rahim with "F" from the given String:
     Input: Ratul and Rahim lives in Rangpur
     Output: Ratul and Fahim lives in Rangpur
    1. Find out how many images are in the given array:
      ["photo1.jpg", "doc1.pdf", "doc2.docx", "photo2.png", "doc3.pdf", "msoffice.exe", "photo3.jpg"]
      Output: 3
    1. Write a program to convert each 1st char to uppercase from a string
      Input: rahim lives in sylhet
      Output: Rahim Lives in Sylhet

Solved

    1. TransactionID
    1. TotalPrice
    1. PurchasePrice
    1. CountryDivision
    1. FindVowels
    1. ReplaceString
    1. FileExtension
    1. LetterUppercase

About

A basic string manipulation problem

License:MIT License


Languages

Language:Java 100.0%