Welcome to Java!

Sort by

recency

|

588 Discussions

|

  • + 0 comments

    public static void main(String[] args) {

        System.out.println("Hello, World.");
        System.out.print("Hello, Java.");
    
    }
    
  • + 0 comments

    /** Print both the Hello, World and Hello, Java using a single statement by using \n (new line operator, which prints the next sentence in a new line) */

    import java.io.; import java.util.;

    public class Solution {

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

    }

  • + 0 comments

    For Java15 Platform

    I wrote the code from scratch just to get more practice

    class Solution
    {
        public static void main(String args[])
        {
            System.out.println("Hello, World.");
            System.out.println("Hello, Java.");
        }
    }
    
  • + 1 comment

    Here is Welcome to Java problem solution - https://programmingoneonone.com/hackerrank-welcome-to-java-problem-solution.html

  • + 0 comments

    Using Java for a coffee menu website is good only if you need advanced backend features like orders or payments. For simple menus or design, HTML, CSS, and JavaScript are easier and faster. WordPress is also a great option. Use Java only if backend logic is truly required.