Core Java Training

Monday, February 2, 2015

Assignment on Type casting

Create one string array with values "2","12","22","32","42","72".

If the value in the array is less than 20 then multiply it with 10 and print the result. if the value in the array is greater than 50 then divide it by 12 and print the output.
Posted by renu at 1:50 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

renu
View my complete profile

Blog Archive

  • ▼  2015 (47)
    • ►  April (8)
    • ►  March (13)
    • ▼  February (21)
      • ListIterator Example
      • ArrayList Example
      • Array List Example
      • Collections - ArrayList with Iterator - Introduction
      • Custom Exception
      • Exceptions
      • Custom Exception creation
      • PPT Updated
      • Try catch finally - sample code
      • Final keyword sample code in Java
      • Interface Sample Code
      • Assignment on All the concepts integrated
      • Arrays assignment
      • Interface Assignment 2
      • Interface Sample code
      • Interface Assignment
      • Abstract class sample code
      • Abstract Class - Assignment
      • Updated PPT and sample project till Type Casting
      • Assignment on Type casting
      • Assignment on Conditional Statements, loops and va...
    • ►  January (5)
Simple theme. Theme images by luoman. Powered by Blogger.