List<String> content = resource.getContent(ArrayList.class);
Java Type Safety
package BST; import exceptions.DuplicateItemException; ...
Java first BST
hi,
so i'm still a new p...
public void setPageOption(String key, String value){
if (key==null) return;
Boolean boolValue = value==null? null: "true".equals(value);
...
Java Too many if statements
Too many if statements. Wan...
if(Mouse.isButtonDown(0))
{
if((x > 2 + dragAmtX) && (x < 2 + width + dragAmtX) && (y > 60 + dragAmtY) && (y < 60 + height + dragAmtY))
...
Java Draggable Box
Hey.
I've been trying to m...
package templates.processing; /** ...
Java A template processor
I think this can be made mu...
public InputSource resolveEntity(String publicId, String systemId) {
if (systemId.endsWith("/documents.xsd")) {
InputStream in = getClass().getResourceAsStream("/xsd/documents.xsd");
...
Java Long if ladder
Be nice to get rid of the i...
Index.xhtml file is: <?xml version="1.0" encoding="UTF-8" ?> ...
Java Dinamic Web Project - Tomca...
I need to show in a xhtml w...
@SuppressWarnings("unchecked")
public static Map<String, String> split(Document payload) throws DocumentException {
Map<String, String> candyDocuments = new HashMap<String, String>();
...
Java Splitting Documents with Dom4J
Is there a nicer way to spl...
public final static Index searchIndex(List<Index> indexList, String platform, String audience){
Index r = null;
for (Index indx: indexList){
...
Java Simple Loop
Can you make this more effi...
private final static String[] AUDIENCE_HIERARCHY = new String[]{"A","B","C"};
public final static Index searchIndexByAudienceHierarchyWhileLoop(List<Index> indexList, String platform, String audience){
...
Java Hierarchy Search
Is there a better of doing ...
public class IndexContentHandler extends DefaultHandler {
...
Java Is there a nicer way of usi...
I don't like all the if sta...
public static Node getNode(Node node, String[] path, Integer level)
{
if(path.length == 0) return node;
...
Java Find node
Find node from node tree wi...
public class Main {
public static void main (String[] args) {
...
Java Rational Numbers
My assignment is Rational N...
public String getConceptPath(Concept concept){
StringBuffer path = new StringBuffer();
...
Java Traversing Lists
A Concept has x number of p...
public static String serializeNodesAsJson(List<NavigationNode> nodes) throws IOException {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.getSerializationConfig().setSerializationInclusion(JsonSerialize.Inclusion.NON_DEFAULT);
...
Java Jackson Methods
Perhaps this could be refac...
package javamortgagecalculator; import javax.swing.JOptionPane; ...
Java Having Trouble Printing Out...
I am new to Java and I have...
import java.util.Scanner;
public class calculator {
public static void main(String args []){
...
Java My basic calculator code
i have only been doing java...
public static final HashSet<String> motorways = (HashSet<String>) Collections.unmodifiableSet(new HashSet<String>(Arrays.asList("AB", "BC", "CE")));
Java Lengthy assignment for clas...
I basically want a publicly...
<div class="companypagecoveringanalyst">
<%
if(company.isEquityCovered() || company.isCreditCovered()){
...
Java Gauri's "too many if's...
Gauri posted this request f...
//Main.java package forms; ...
Java simple jinternalframe with ...
This is the first time I su...
public interface IProcess {
...
Java Scan directory recurcively
I try to write classes to s...
import java.util.ArrayList;
public class Purse {
...
Java I need help...
The method I have trouble w...
(defn get-romname "Return bytes of ROM name" [filename] ...
Java Random access from file #cl...
Posted to java because I gu...
package reversestring;
public class Propogate {
...
Java Reverse a String for demons...
Any sort of refactoring lik...
Is there a way to make this...