-1
votes
2answers
41 views

how to decrypt hashcode? ist the same with decode?

how to decrypt hashcode? ist the same with decode?? how can i decrypt/decode this code? could someone help me. enter.setOnClickListener(new OnClickListener() { @Override public void ...
0
votes
3answers
35 views

String startsWith DRIVELETTER:\

Quick question in Java String.startsWith() which needs some sort of wildcard. I need to check to see if a link starts with http:// or a local drive (c:\,d:\ etc) but I do not know the drive letter. ...
2
votes
3answers
96 views

Replace in string

I have a string s composed of two strings s1 and s2, s = s1+s2. I'd like to be able to modify s1 in another function, and then recompose s with the modified version of s1. I'd like to change s1 so ...
1
vote
2answers
67 views

Using regex to verify an int, my way isnt working

I want to make sure a string is a legal int. This means that it must be a number (with no "."). However, spaces are allowed both at the beginning as well as after the legal value. The following ...
0
votes
4answers
55 views

The strings.xml file in Android

An Android noob here. So, I was following this guide by Lars Vogel (section 20). I started a new Android Application Project in Google's modified Eclipse, and edited the strings.xml, so it looks like ...
0
votes
2answers
20 views

Java search input

I need to create a JTextField search where users can enter input and matching entries in my arraylist of objects are returned in a JTextArea. How can I return entries even if they have only entered ...
0
votes
0answers
68 views

a String in program never match a String retrieved from a database

I select some objects from a database using Hibernate, and each of the object's content can be print correctlly (at least it looks to be). System.out.println(oneObject.name); //This looks OK. ...
-3
votes
0answers
35 views

quicksort and mergesort string array java [closed]

hey is it possible if i add quicksort and mergesort method to my program. this the method how i input the data to be sorted using those public static void input() { Scanner input = new ...
0
votes
1answer
46 views

Java calling of class method, “incompatible types” inside called method [closed]

/** from my main class and method */ String ans = null; System.out.println("Has your address changed?(y/n): " ); ans = input.next(); munozAccount.changeAddress(ans); /**from accounting ...
0
votes
1answer
61 views

How to convert collection of strings to string array in java [duplicate]

I am trying to pass attributeNames which is a collection of string to a method setColumnNames that accepts string array. public Map<String, String> getAttributes(String rowKey, ...
-1
votes
3answers
106 views

Java - Unexpected behaviour from String.replace() [closed]

I am implementing my own scripting language as a side-project, and in the language variables are accessed by $[variable name]. However, when I use String.replace() to replace (for example) $myvar with ...
0
votes
2answers
80 views

How do I declare String from result of IF Statement?

I have been playing around and testing out some of the stuff I learned, and this isn't working for me for some reason. It's only mid-app, but I keep running it during development to make not have a ...
0
votes
3answers
34 views

Can't Pass StringTokenizer to more than one method

Though, I have done a workaround for this, but still this thing is confusing me, well logically. public static void main(String[] args) { String sent = "He is doing it good"; ...
-3
votes
1answer
64 views

JAVA double to string with sign and without trailing zeros

I need to format a double value to string in such a way that it has a sign in front ("+" whether it's positive, "-" whether it's negative) and has no trailing zeros. For example: Input: 1.5 Output: ...
3
votes
2answers
84 views

SimpleDateFormat can't parse Date

i've got a little problem with parsing a String to date. I searched on stackoverflow an thought that i got my answer but its still not working .. so .. I trying to parse a String which looks like ...

1 2 3 4 5 480
15 30 50 per page