Questions tagged [value-of]

138 questions
0
votes
2 answers

xslt - select car names of user

I have xml file below:
testCoder
  • 7,155
  • 13
  • 56
  • 75
0
votes
2 answers

Minimaze time complexity of this algorithm (selecting common substrings in a feed)

I have a really big feed file with lot of coloumns. I will represennt one of the coloumns with a strings and i want to check these strings... Let's see we have these string values (in a coloumn), the feed is obviously finctional:): "Gia Joe Black…
czupe
  • 4,740
  • 7
  • 34
  • 52
0
votes
1 answer

XSLT value-of with multiple children of different types

why do I get with that data: block 1 block 2 no block 3 and this transformation:
drakon
  • 125
  • 9
0
votes
1 answer

How to sum() positive/negative numbers in XSLT?

To sum a series of values (positive or negative) use the sum() function in XPath. In this example, we get transactions from an XML source and puts it into a variable. Then we sum it up in the end. XML Source:
miracules
  • 686
  • 7
  • 25
-1
votes
2 answers

How to get the exact date and time from the valueOf()?

we can get the milliseconds from 1970 Jan in js for the current date and time new Date().valueOf() // 1528191046005 form this value (1528191046005) how we can calculate the date and time, is there any way?
Vickey
  • 365
  • 1
  • 3
  • 17
-1
votes
2 answers

Can you combine new (with string constructor) and value of in Bigdecimal

I saw the following post in stack overflow which is related to my question: BigDecimal - to use new or valueOf I understand it is recommended to use string constructor for BigDecimal But my question is once you have defined a bigDecimal with string,…
an96
  • 31
  • 2
  • 5
-2
votes
2 answers

How invoke sendKeys() method for Integer values using Selenium and Java

driver.findElementById("com.devere.development:id/et_code_1").sendKeys(Keys.valueOf(1); driver.findElementById("com.devere.development:id/et_code_1").sendKeys(Keys.valueOf(1);
-2
votes
1 answer

BigInteger valueOf method cannot find symbol

I created an array consisting BigInteger objects. When I want to assign numbers to array, I get a cannot find symbol error. Can you help me? That's the code: import java.io.*; import java.util.*; import java.math.BigInteger; public class…
Emre
  • 933
  • 15
  • 27
-2
votes
2 answers

How do I get those 2 errors to go away? in and valueOf methods - Java

I have struggling a bit with those 2 small errors because Eclipse IDE "said so." I will point out the errors. To be honest, I don't know how to explain deeply about those errors. I thought they were simple and I cannot get the errors to go away. …
CR9191
  • 51
  • 1
  • 7
-2
votes
4 answers

Declaring C Pointers - Why do we use * and not &

My question is a simple one (I hope) about c syntax regarding pointer declaration. I am fully aware of how to declare a pointer, how its used and what the effects are, like as follows. int *val_ptr; int val =99; val_ptr = &val; However, what…
Andrew S
  • 2,847
  • 3
  • 33
  • 50
-3
votes
3 answers

please explain why the valueOf method is important here and are there any other alternatives than using valueOf()?

public static String obify(String v) { //String v = "AEIOU"; String result = ""; for(int i=0; i
user13913860
-3
votes
1 answer

Java Inheritance Demonstration - on user input and incompatible types

I'm almost done with a Java program but I'm having a snag compiling. This program is a demonstration on inheritance, with 4 classes (including a driver) but I'm getting 4 errors on the aforementioned driver. I also have a problem with making the…
csheroe
  • 87
  • 3
  • 11
-3
votes
1 answer

Is there a function that returns the UNICODE value of a character? (C++)

I need a function that returns the UNICODE value of a character. In java String.valueOf('а'); is valid. Is there equivalent function in c++?
Temp Temp
  • 121
  • 1
  • 1
  • 3
-4
votes
3 answers

why Integer i = Integer.valueOf(args[0]) failed? the args[0] is a String

Here is the problem description: in my preparation for ocjp test, I have encountered a problem, and I can not figure out what's wrong with it. package test; class Test005{ public static void main(String[] args){ //Integer i =…
qiwen li
  • 11
  • 2
1 2 3
9
10