public class Test{ public static void main(String args[]){ Class2 Class2Object = new Class2(); System.out.println(Class2Object.toMilitary()); Class2Object.getTime(3, 59, 9); System.out.println(Class2Object.toMilitary()); }
}
import java.util.Scanner;
public class Test{ public static void main(String args[]){ Scanner iage = new Scanner(System.in); System.out.println("Hey ! Lets decide if you ae over or under a certain age"); int age = iage.nextInt(); System.out.println(age>50?"You ae over 50": "You ae under 50"); }
}
Defect management is essential part of Software Test Life Cycle (STLC), and it is essential to follow the Defect Management Flow. Here is the flow diagram for the same.
import java.util.Scanner;
public class Test{ public static void main(String args[]){ Class2 Class2obj = new Class2(); Scanner input = new Scanner(System.in); System.out.println("Enter your name"); String name = input.nextLine(); Class2obj.setName(name); Class2obj.message(); }
}
public class Test{ public static void main (String args[]){ System.out.println("Program to depict usage of switch case"); Scanner iage = new Scanner(System.in); System.out.println("Enter age now:"); int age = iage.nextInt(); switch(age) { case 1: System.out.println("Kid can crawl"); break; case 2: System.out.println("Kid can walk"); break; case 3: System.out.println("Kid can talk"); break; default : System.out.println("Kid is a trouble! Send him School"); break; } }
}
public static void main (String args[]) throws Exception { File excel = new File("F:\\Selenium\\data1.xls"); FileInputStream fis = new FileInputStream(excel); HSSFWorkbook wb = new HSSFWorkbook(fis); HSSFSheet ws = wb.getSheet("Input"); int rowNum = ws.getLastRowNum()+1; int colNum = ws.getRow(0).getLastCellNum(); String[][] data = new String[rowNum][colNum]; for (int i = 0 ; i<rowNum; i++){ HSSFRow row = ws.getRow(i); for (int j=0;j<colNum;j++){ HSSFCell cell = row.getCell(j); String value = cellToString(cell); data[i][j] = value; System.out.println("Value at position [" +i +"] [" +j +"]is " +value) ; } //System.out.println("Value at position [" +i +"] is " +data[i][j]) ; } }
public static String cellToString(HSSFCell cell) { int type ; Object result ; type = cell.getCellType() ; switch (type) { case 0 : // numeric value in Excel result = cell.getNumericCellValue() ; break ; case 1 : // String Value in Excel result = cell.getStringCellValue() ; break ; default : throw new RuntimeException("There are no support for this type of cell") ; } return result.toString() ; }
}
If you missed to download the Internet hyped game FLAPPY BIRD, which has been removed from App Store / Play Store. Worry No more. Android to the rescue !!
Just navigate to below link and download the apk file.
A zombie process is a process that has completed execution but still has an entry in process table. This entry is required by the parent process to read exit status of of its child's process.