₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,822 members, 8,513,841 topics. Date: Thursday, 05 November 2026 at 03:57 PM

Toggle theme

Post Your Source Codes - Programming - Nairaland

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

1 Reply

Post Your Source Codes by Rhaspody(op): 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

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

This Is The First Software Programming Help-desk In Lagos • Is Virtualization Really A Next Generation Of Technology ? • About Adsence Achievement Cards Congratulations Message