List<String> content = resource.getContent(ArrayList.class);

Java Type Safety

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, January 25, 2012 07:44, No refactoring

Is there a way to make this...

55502f40dc8b7c769880b10874abc9d0 Talk
package BST;
import exceptions.DuplicateItemException;

...

Java first BST

by orangelight.myopenid.com, January 18, 2012 14:13, 5 refactorings

hi,

so i'm still a new p...

55502f40dc8b7c769880b10874abc9d0 Talk
public void setPageOption(String key, String value){
		if (key==null) return;
		Boolean boolValue = value==null? null: "true".equals(value);
...

Java Too many if statements

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, January 04, 2012 03:17, 5 refactorings

Too many if statements. Wan...

55502f40dc8b7c769880b10874abc9d0 Talk
if(Mouse.isButtonDown(0))
        {
            if((x > 2 + dragAmtX) && (x < 2 + width + dragAmtX) && (y > 60 + dragAmtY) && (y < 60 + height + dragAmtY))
...

Java Draggable Box

by https://www.google.com/accounts/o8/id?id=AItOawmst0sW9xXK8PoImFIqsiW5GmqKEarDFMo, December 23, 2011 11:14, 1 refactoring, tagged with game, box, drag, draggable, mouse, click

Hey.
I've been trying to m...

55502f40dc8b7c769880b10874abc9d0 Talk
package templates.processing;

/**
...

Java A template processor

by https://me.yahoo.com/a/UxwSweltzI.mL3Ern1_X5ctF3TgdC9M0VFPJD2fC3Q--, December 23, 2011 08:06, 3 refactorings

I think this can be made mu...

55502f40dc8b7c769880b10874abc9d0 Talk
public InputSource resolveEntity(String publicId, String systemId) {
		if (systemId.endsWith("/documents.xsd")) {
    		InputStream in = getClass().getResourceAsStream("/xsd/documents.xsd");
...

Java Long if ladder

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, December 01, 2011 09:18, 12 refactorings

Be nice to get rid of the i...

55502f40dc8b7c769880b10874abc9d0 Talk
Index.xhtml file is:

<?xml version="1.0" encoding="UTF-8" ?>
...

Java Dinamic Web Project - Tomca...

by Dinnin, November 30, 2011 05:59, No refactoring, tagged with xhtml, java, JDBC

I need to show in a xhtml w...

B07967e84cfc5b4587a0f6b57658d4a2 Talk
@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

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, November 28, 2011 02:43, 1 refactoring

Is there a nicer way to spl...

55502f40dc8b7c769880b10874abc9d0 Talk
public final static Index searchIndex(List<Index> indexList, String platform, String audience){
		Index r = null;
		for (Index indx: indexList){
...

Java Simple Loop

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, November 24, 2011 05:44, 1 refactoring

Can you make this more effi...

55502f40dc8b7c769880b10874abc9d0 Talk
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

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, November 24, 2011 03:55, No refactoring

Is there a better of doing ...

55502f40dc8b7c769880b10874abc9d0 Talk
public class IndexContentHandler extends DefaultHandler {


...

Java Is there a nicer way of usi...

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, October 27, 2011 04:33, 2 refactorings

I don't like all the if sta...

55502f40dc8b7c769880b10874abc9d0 Talk
public static Node getNode(Node node, String[] path, Integer level)
{
	if(path.length == 0) return node;
...

Java Find node

by https://www.google.com/accounts/o8/id?id=AItOawmFSLiGcm1Ba0EuaqU8GjXQahkn4ZHsvkI, October 19, 2011 12:29, 11 refactorings

Find node from node tree wi...

55502f40dc8b7c769880b10874abc9d0 Talk
public class Main {

	public static void main (String[] args) {
...

Java Rational Numbers

by darteaga.myopenid.com, September 22, 2011 18:20, 3 refactorings

My assignment is Rational N...

55502f40dc8b7c769880b10874abc9d0 Talk
public String getConceptPath(Concept concept){
		StringBuffer path = new StringBuffer();
		
...

Java Traversing Lists

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, September 17, 2011 01:55, 5 refactorings

A Concept has x number of p...

55502f40dc8b7c769880b10874abc9d0 Talk
public static String serializeNodesAsJson(List<NavigationNode> nodes) throws IOException {
		ObjectMapper objectMapper = new ObjectMapper();
		objectMapper.getSerializationConfig().setSerializationInclusion(JsonSerialize.Inclusion.NON_DEFAULT);
...

Java Jackson Methods

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, September 06, 2011 06:43, 1 refactoring

Perhaps this could be refac...

55502f40dc8b7c769880b10874abc9d0 Talk
package javamortgagecalculator;
import javax.swing.JOptionPane;

...

Java Having Trouble Printing Out...

by https://www.google.com/accounts/o8/id?id=AItOawlfsaP0zhaKALANAuldgxQaHqJkHDBxUxg, June 12, 2011 14:21, No refactoring, tagged with methods, output, Java

I am new to Java and I have...

55502f40dc8b7c769880b10874abc9d0 Talk
import java.util.Scanner;
public class calculator {
	public static void main(String args []){
...

Java My basic calculator code

by getrshah.myopenid.com, May 14, 2011 19:06, 1 refactoring, tagged with calculator

i have only been doing java...

55502f40dc8b7c769880b10874abc9d0 Talk
public static final HashSet<String> motorways = (HashSet<String>) Collections.unmodifiableSet(new HashSet<String>(Arrays.asList("AB", "BC", "CE")));

Java Lengthy assignment for clas...

by phil989, May 01, 2011 07:59, 7 refactorings

I basically want a publicly...

55502f40dc8b7c769880b10874abc9d0 Talk
<div class="companypagecoveringanalyst">
<%
    if(company.isEquityCovered() || company.isCreditCovered()){
...

Java Gauri's "too many if's...

by Ants, February 05, 2011 06:36, 5 refactorings, tagged with JSP, <table> generation, if's, parallel classes

Gauri posted this request f...

F9a9ba6663645458aa8630157ed5e71e Talk
//Main.java

package forms;
...

Java simple jinternalframe with ...

by https://www.google.com/accounts/o8/id?id=AItOawk9yXGg8pMkXhmnLcG6ZCFdK0KfTtXB4DA, January 03, 2011 01:39, No refactoring, tagged with java gui

This is the first time I su...

Fc7bb743a70f4980c2bb895a96e89880 Talk
public interface IProcess {

...

Java Scan directory recurcively

by https://www.google.com/accounts/o8/id?id=AItOawn60BQ3j2wGqeAmwsTZFdMd0YURb5dAR2s, December 14, 2010 10:08, No refactoring, tagged with java, file, Directory, thread

I try to write classes to s...

55502f40dc8b7c769880b10874abc9d0 Talk
import java.util.ArrayList;
public class Purse {

...

Java I need help...

by https://www.google.com/accounts/o8/id?id=AItOawlEeW5NfSyFgNQwkmJXyHtgV0-idTgDlas, December 05, 2010 22:14, 3 refactorings

The method I have trouble w...

55502f40dc8b7c769880b10874abc9d0 Talk
(defn get-romname
  "Return bytes of ROM name"
  [filename]
...

Java Random access from file #cl...

by edbond, October 29, 2010 18:37, 1 refactoring, tagged with java, clojure, lisp

Posted to java because I gu...

671af8c4a2d223c7d2e2ede3a0154975 Talk
:)

Java test

by pzielinski.myopenid.com, October 25, 2010 19:04, 1 refactoring, tagged with test

test - just to see how it w...

55502f40dc8b7c769880b10874abc9d0 Talk
package reversestring;

public class Propogate {
...

Java Reverse a String for demons...

by suhass.myopenid.com, October 18, 2010 17:04, 4 refactorings, tagged with java string reverse

Any sort of refactoring lik...

E45958551a7cd1e313a3166276af3130 Talk