Category: Java

Top 10 Java Questions Problems

Top 10 Java Questions Problems 1.A certain grade of steel is graded according to the following conditions: (i) Hardness must be greater than 50 (ii) Carbon content must be less than 0.7 (iii) Tensile strength must be greater than 5600 The grades are as follows: Grade is 10 if all three conditions are met Grade […]

TOP 10 Java Pattern Programs

TOP 10 Java Pattern Programs 1- Square Pattern Programs in Java * * * * * * * * * * * * * * * * package pattern; import java.util.Scanner; public class pattern_1 { public static void main(String arg[]) { Scanner key = new Scanner(System.in); System.out.print(“Enter the pattern Numbers=”); int n = key.nextInt(); for […]