Welcome to Java!

Sort by

recency

|

582 Discussions

|

  • + 0 comments

    Wrong Answer :(

    1/1 test case failed

    Sample Test case 0

  • + 0 comments

    package pack1; public class temp {

    float c,f; public void getval(float a) { c=a; System.out.println("Temp in celsius"+c+"degree"); } public void ctof() { f=(float)(c*1.8f)+32; System.out.println("Temp in farenhiet"+f); } } /Program to calculate simple interest/ Create a package with name pack2( steps: right click on your application->New->Java packages->type [pack1]in package name field->finish. package pack2; public class simple { float p,t,r,si; public void getdata(float a,float b,float c) { p=a; t=b; r=c; } public void cal() { si=p*t*(r/100); System.out.println("Simple interest is=" +si); } }

  • + 0 comments

    public class Solution {

    public static void main(String[] args) {
        System.out.println("Hello, World.");
        System.out.println("Hello,Java.");
    }
    

    } this program correct

  • + 0 comments

    public class Solution {

    public static void main(String[] args) {
        System.out.println("Hello, World.");
        System.out.println("Hello,Java.");
    }
    

    }

  • + 0 comments

    hello