You are here: Home / Topics / Page / 4

Program to explain Generic Method in Java

Filed under: Java on 2024-04-12 18:37:56
// Program to explain Generic Method.public class  GenericTest7 {// generic method printArraypublic static <T> void printArray(T[ ] inputArray) { // display array elements for (T element : inputArray)  System.out.printf("%s  ", element); System.out.print

Program to explain Simple Generic class in Java

Filed under: Java on 2024-04-12 18:32:56
// Program to explain Simple Generic class.class   A<T> {T ob;A(T o) { ob = o;}T getob() { return ob;}void showType() { System.out.println("Type of T is " + ob.getClass().getName());}}public class  GenericTest1{public static void main(String args[ ]

How did I Setup bootstrap css in my Java EE project?

Filed under: Java EE on 2024-03-30 20:48:24
During my setup of java EE project. I faced one problem. I was unable to include bootstrap css in my project. I tried many ways to do this.<link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.min.css"/>But it was not being included in my webpages (.jsp pages) so i searched on goo

Project Structure - TypeScript

Filed under: TypeScript on 2024-03-18 12:45:47
Create two folders with the name ‘src’ and ‘public’. ‘src’ will be responsible to keep ts files & ‘public’ will be responsible to keep js & html files.Execute the following commands:tsc --initThis command will be responsible to create a tsconfig.json file. Open the tsconfig.j