Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,903 members, 7,817,677 topics. Date: Saturday, 04 May 2024 at 05:01 PM

Post Your Source Codes - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Post Your Source Codes (652 Views)

Download Free Project Source Codes And Materials From Projectbasket / Free Source Codes For All Languages / After Writting The Source Codes,how Do I Make It An Application Software! (2) (3) (4)

(1) (Reply)

Post Your Source Codes by Rhaspody(m): 7:51pm On Sep 27, 2014
I'm fairly new to java programming. this is my first java code. it's simple and straight to the point. I hope to create a program that solves algebra and other simple maths

 class myformlr
{
double base, height, triArea;
void calc()
{
triArea = (base*height)/2;
System.out.println("Area of the triangle =" + triArea);
}
void values(double b, double h)
{
base = b;
height = h;
}
}
class trigarea
{
public static void main(String args[])
{
myformlr trig = new myformlr();
trig.values(5,4);
trig.calc();
}
}



post yours if you have any

(1) (Reply)

Help Pls., Unable To Installed Vb.net / Basic Programing / What Kind Of Apps Are Better To Develop

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 4
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.