Sunday, 2024-11-17
BioInfo Pakistan
Site menu
Section categories
JAVA Online Course [6]
This Category Is To Support Our First Free Online JAVA Course.
Our poll
Pakistani Students Should Join Bio-Informatics
Total of answers: 36
Chat Box
Statistics

Total online: 3
Guests: 3
Users: 0
Home » 2011 » September » 2 » Lecture 1 Page 2
10:07 PM
Lecture 1 Page 2


Now Some Basic Examples

1. Basic Data Types:
   Every variable has some data type in JAVA, this data type decides what this variable will store. Some basic data types are as follows:
  • String: As name describes it is used to store strings(Sequence of alphabets) in it. It is used as String s = "Its JAVA course";
  • int: as name shows it stores integer value. It can't store decimal value e.g int a = 20;
  • float and double: These two data types are used to store decimal values, difference in them is the usage of memory. More you will learn with time. It can be used as float x = 2.99;
   
2. Simple Program That Uses Strings:
  • Make new project named StringTest as described before.
  • Write following commands in main method.
    • String x = "Java ";
    • String y = "Course";
    • String z = x+y;
    • System.out.println(z);
  • Test this and try different such statements.
3. Simple Calculations:
  • Make new project named BasicMaths as described before.
  • Write following commands in main method.
    • int a =12;
    • int b =3;
    • int c,d,e,f,g;
    • c= a+b;
    • d= a*b;
    • e= a-b;
    • f= a/b;
    • g= a%b;
    • System.out.println("Addition : "+ a +" + "+ b +" = "+ c );
    • System.out.println("Multiplicaton : "+ a +" * "+ b +" = "+ d );
    • System.out.println("Subtraction : "+ a +" - "+ b +" = "+ e );
    • System.out.println("Division : "+ a +" / "+ b +" = "+ f );
    • System.out.println("Remainder : "+ a +" % "+ b +" = "+ g );
  • Test this and try different such statements.

For Discussion I Will Be Online After 9 PM
(Pakistan) Daily.
You Can Also Leave A Thread At FORUM Which Will Be Answered In 24 Hrs.
Your Assignment After This Lecture Is To Practice All These Tasks And Give Some New Examples At FORUM.

Next Lecture Will Be On Tuesday.


Category: JAVA Online Course | Views: 1259 | Added by: Ansari | Rating: 0.0/0
Total comments: 3
3 Carmelagow  
0
Matthew Michael D'Agati functions as the proprietor of RW, a Solar Firm in Massachusetts.

A couple of decades ago, venturing into an adventurous journey, Matthew D'Agati ventured into the world of alternative energy, and in a moments started effectively selling megawatts of power, predominately at the business industry, collaborating with developers of solar farms and local businesses in the "planning" of personal works.

Continuous networking tips within the discipline, brought Matthew to be part of a native startup 2 long time backwards, and within no time, he became their CSO, in charge of all functioning and business venture development, as well as being available group possession.

Through strategical unions and shear do the job moral principle, Matthew D'Agati brought that providers from an initial to start with-year salary to over a 2 hundred% build up in overall sales by day two. Building on that basis, RW, a veteran soldier-owned business, was formed with missionary work of giving you alternative vitality cures for a smarter and more lasting future.

Some more exclusively, understanding there is a specific market in the store and an enhanced method to realize websites, RW is one of a handful of businesses in the United States government to sharpen on individual obtain, concentrating in both professional and domestic solar powered farm land off-take. Specific eye sight is to write a business facilities on a regional, regional, national level, offering various green fuel models in the of RW.

This enthusiasm in really sustainable industry keeps to excite and motivate Matt in staying his journey to work with agencies that express the unchanging of supplying renewable electric remedies for a a lot more eco friendly potential. Matt have each in companies from Hesser College.

<a href=https://www.youtube.com/watch?v=Nt_yjhV2XaA>Picking a solar energy provider for Massachusetts guided from Matt dagati.</a>
<a href=http://sauleja.lt/>This Task of Eco-friendly Power in Resisting Global Warming by matthew dagati</a> 4e8aceb

2 JamesDuh  
0
Hey hello, judicial explorers! Excited to stumble upon this fantastic site. Being a personal injury lawyer, I treasure practical insights. Let me tell you I've got my own center now, making simple personal injury law for everyone. Jump in, explore, and let's make legal grasping a snap.
<a href=https://amicuslegalgroup.com/2020/11/21/hurt-by-a-distracted-driver-in-california-how-can-i-recover-compensation/>Redlands Legitimate support for individuals dealing with problems with domestic abuse</a>
<a href=https://allfriends.clan.su/news/2008-01-25-51>Product Duty Litigation and Upkeeping Manufacturers Liable</a> 21bb24e

1 Ansari  
0
You can download discussed project from forum.

Forum

Name *:
Email *:
Code *:
Log In

Search
Calendar
«  September 2011  »
SuMoTuWeThFrSa
    123
45678910
11121314151617
18192021222324
252627282930
Entries archive
Site friends
Copyright MyCorp © 2024
Free website builderuCoz